Skip to content

Instantly share code, notes, and snippets.

@tedheich
Created November 15, 2009 10:52
Show Gist options
  • Save tedheich/235151 to your computer and use it in GitHub Desktop.
Save tedheich/235151 to your computer and use it in GitHub Desktop.
Process a file line by line in Python
import sys
for line in open(sys.argv[1],'r'):
print line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment