Skip to content

Instantly share code, notes, and snippets.

@ashchristopher
Created April 28, 2012 17:58
Show Gist options
  • Save ashchristopher/2520854 to your computer and use it in GitHub Desktop.
Save ashchristopher/2520854 to your computer and use it in GitHub Desktop.
Simple reading of file with python
with open('data.txt', 'r') as f:
for line in f.readlines():
print line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment