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