Problem with writing a long line in a text file

Joe Strout joe at strout.net
Wed Nov 19 17:31:19 EST 2008


On Nov 19, 2008, at 3:27 PM, Mohsen Akbari wrote:

> I'm a newbie in python and I have this problem with the code that  
> I'm writing. There is a very long line which I wish to output it to  
> a text file.But when I do this, in the output file, the result  
> appears in two lines.

Appears that way where?  Using what tool to view it?

My guess is that there is nothing wrong with the file, but that  
whatever you're using to view it is simply displaying it as two lines  
even though it is actually one.

HTH,
- Joe






More information about the Python-list mailing list