Skip to content

Instantly share code, notes, and snippets.

@managai
Created November 15, 2011 16:19
Show Gist options
  • Save managai/1367478 to your computer and use it in GitHub Desktop.
Save managai/1367478 to your computer and use it in GitHub Desktop.
(python) read file line by line
f = open('myfile.txt')
for line in iter(f):
print line,
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment