file read, binary or text mode

Peter Hansen peter at engcorp.com
Fri Sep 24 13:41:44 CEST 2004


Guyon Morée wrote:
> what is the difference?
> 
> if I open a text file in binary (rb) mode, it doesn't matter... the read()
> output is the same.

If you are on Linux that's the case...  or under other
conditions.  Maybe describing your platform and showing
an example of what you're trying to do would be helpful.

-Peter



More information about the Python-list mailing list