f.write(chr(10)) ?

ingo ingoogni at CUT.THIS.OUT.home.nl
Mon Jul 24 14:32:05 EDT 2000


Hi all,
I'm just beginning with programming and Python. 
Writing a file using this:

>>> f=open("testpy",'wd')

>>> f.write(chr(10)) 	

>>> f.close()

When I open the file with HexEdit I see:
    	0000: 0D 0A
I expected 
    	0000: 0A

What's wrong?


Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/



More information about the Python-list mailing list