Answers for "How to find out whether a file is at its `eof`?"

0

How to find out whether a file is at its `eof`?

fp = open("a.txt")
#do many things with fp

c = fp.read()
if c is None:
    print 'fp is at the eof'
Posted by: Guest on March-02-2022

Code answers related to "How to find out whether a file is at its `eof`?"

Browse Popular Code Answers by Language