file.seek misbehaving?

cheesecake vigenereNOviSPAM at leland.stanford.edu.invalid
Mon Jun 5 04:54:26 EDT 2000


"rb" mode solved the problem. It now behaves as expected.

Also, David and Gordon were right about the eoln characters. I
thought I had checked to make sure both files I was comparing
had the same \n terminating character, but I must have checked
wrong. The Windows files was indeed using a \r\n combination,
which explains the difference in file size.

TD

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!




More information about the Python-list mailing list