Linhas de leitura Python final do arquivo
with open('somefile') as openfileobject:
for line in openfileobject:
do_something()
Arrogant Ant
with open('somefile') as openfileobject:
for line in openfileobject:
do_something()