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