In <[EMAIL PROTECTED]>, KraftDiner
wrote:
> 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?
Try to read something. If the empty string is returned you are at the end
of the file. Or write a function that uses `os.path.filesize()` and the
`tell()` method of the file.
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list
