Re: writing some lines after reading goes wrong on windows?

harveysthomas at yahoo.com harveysthomas at yahoo.com
Thu Apr 27 11:38:45 EDT 2006


If you are opening a file for read and write access use "rb+" or "wb+".
Seeking and subsequent read/write will then work fine. Without the "b",
 Windows opens the file in its "text" mode. Don't seek on files opened
in "text" mode.




More information about the Python-list mailing list