Created
September 22, 2014 00:27
-
-
Save studiawan/ce4d3c2dcbdc440c4020 to your computer and use it in GitHub Desktop.
Read file using "with" statement
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
# read file without close, with statement will close it for us :) | |
with open('submission.html', 'r') as f: | |
text = f.read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment