File read and writing in binary mode...

nicolasg at gmail.com nicolasg at gmail.com
Sat Jun 17 13:47:30 EDT 2006


>
> Solution: only use binary files, and do the newline-translation yourself
> if needed.
>
> Diez

The probelm is if I can't use only binary files...
How can I do the newline-translation myself ? if check the text and
found the diferrence between binary and text is the '\r' instead of
'\'n' . I can't change every '\n' because it will change the real '\n'
ones....




More information about the Python-list mailing list