>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. -- http://mail.python.org/mailman/listinfo/python-list