[Newbie] line separators in file-output

Daniel Orlowski daniel.orlowski at bg-sys.de
Wed Mar 21 08:38:34 EST 2001


If I in Python uder Windows do smth like this:

>>> File=open("test","w")
>>> File.write("a line"+"\n")
>>> File.close()

I have data in file test:
'a line\015\012'

How can I prevent output of  '\015'?

Thanks in advance
Daniel





More information about the Python-list mailing list