Skip to content

Instantly share code, notes, and snippets.

@solarce
Created February 13, 2009 06:21
Show Gist options
  • Save solarce/63076 to your computer and use it in GitHub Desktop.
Save solarce/63076 to your computer and use it in GitHub Desktop.
import os
lines = open('/tmp/foo').read().splitlines()
for line in lines:
print line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment