Created
April 28, 2012 17:58
-
-
Save ashchristopher/2520854 to your computer and use it in GitHub Desktop.
Simple reading of file with python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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