Created
November 7, 2013 18:46
-
-
Save moacirmoda/7359777 to your computer and use it in GitHub Desktop.
This file contains 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
file = "file.txt" | |
# ler linha a linha | |
for line in handle(file): | |
print line | |
# lendo o arquivo todo | |
with open(file) as handle: | |
data = handle.read() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment