with open("ecriture_et_difference.txt", "r") as source: # for each line for line in source: words = sentence.split(" ") print(words) with open(fichier_texte, "w") as destination: destination.write(sentence)