file.read problem
wscrsurfdude
mark at holmes.nl
Fri Feb 17 01:37:00 EST 2006
More information about the Python-list mailing list
Fri Feb 17 01:37:00 EST 2006
- Previous message (by thread): file.read problem
- Next message (by thread): file.read problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
f = open('myfile,'r')
a = f.read(5000)
When I do this I get the first 634 bytes. I tried using the:
f = open('myfile,'rb')
option, but now there are a few 0x0D bytes extra in myfile. 0x0D =
Carriage return. How can I make a program that not puts in the 0x0D
bytes in windows.
In linux the first 2 lines are working perfectly.
- Previous message (by thread): file.read problem
- Next message (by thread): file.read problem
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list