file.read problem

wscrsurfdude mark at holmes.nl
Fri Feb 17 02:00:32 EST 2006


>Try opening the file in 'rbU' mode. This will use universal newline mode
>and convert all carriage returns to line feeds.

I tried this, but as you say, now there are 0x0A bytes extra in my
files, is there also a possibility to let all these things out, and
just get the file.

I am working on a script to get parts of raw data out of a file, and
the data I read has to be the data written in the file without CR or
LF.




More information about the Python-list mailing list