Skipping EOFs when using file objects?

Colin Cashman ccashman at attbi.com
Wed Nov 27 22:38:53 EST 2002


> I'm building a decoder for yEnc files, but I'm hitting premature EOF 
> characters (that is, I'm only 300 or 400 bytes into the file, when the 
> file size is around 950 bytes).

It turns out I wasn't opening the file in binary mode. This fixed the 
problem.

I'd like to thank both Jeff Epler and Chad Netzer for emailing me the 
solution. Thanks, guys!

-- 
I am Jack's obfuscated source code.




More information about the Python-list mailing list