read a file till eof in python code example
Example: python readlines end of file
with open('somefile') as openfileobject:
for line in openfileobject:
do_something()
with open('somefile') as openfileobject:
for line in openfileobject:
do_something()