In Python, after
fh = open('file.txt')
one may do the following to iterate over lines:
for l in fh:
pass
Then why do we have fh.readlines()?
In Python, after
fh = open('file.txt')
one may do the following to iterate over lines:
for l in fh:
pass
Then why do we have fh.readlines()?