vendredi 29 juillet 2016

Python Saving long string in text file

I have a long string that I want to save in a text file with the code:

taxtfile.write(a)

but because the string is to long its save it like it print it as:

"something something ..... something something"   

how do I make sure it will save the entire string without truncating it ?

Aucun commentaire:

Enregistrer un commentaire