In article <[EMAIL PROTECTED]>, "flamesrock" <[EMAIL PROTECTED]> wrote:
> Hi, > > So if I understand correctly, there are NO eof characters in any binary > file. If so, is there an easier way to check for the end of the file > than: > > os.path.getsize(infile) <= infile.tell() How you detect EOF depends on how you're reading the file. For example, read() indicates EOF by returning fewer characters than you asked for (possibly zero). Checking the length of a file is perilous. Files change size. File sizes don't have much meaning on things like network sockets to begin with. -- http://mail.python.org/mailman/listinfo/python-list