Skip to content

Instantly share code, notes, and snippets.

@f6v
Created July 21, 2015 18:48
Show Gist options
  • Save f6v/b41fe846eb9963499994 to your computer and use it in GitHub Desktop.
Save f6v/b41fe846eb9963499994 to your computer and use it in GitHub Desktop.
How to read file in Python
#http://stackoverflow.com/a/8010133/468311
with open(...) as f:
for line in f:
<do something with line>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment