Python Supprimer le texte dans le fichier texte
# Delete all text in a text file
f = open("text_file.txt", "r+")
f.truncate(0)
f.close()
Hello There
# Delete all text in a text file
f = open("text_file.txt", "r+")
f.truncate(0)
f.close()