file object and eof

KraftDiner bobrien18 at yahoo.com
Tue Aug 15 12:49:47 EDT 2006


I open a file in python by
f = open('filename', mode='rb')

how can I tell if I am at the end of file?
f.eof() isn't implmented.

How can I implement its functionallity?

Thanks.
B.




More information about the Python-list mailing list