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