Posted on 26th July 2024|21 views
How can I find whether my file is eof or not?
Posted on 26th July 2024| views
Try this
fp = open("abc.txt")
fp b = fp.read()
if b is None: print 'fp is at the eof'