Created
July 27, 2017 21:07
-
-
Save vihar/3844a78f7da3946e25ff4ee04985fe30 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
try: | |
f = open("test.txt", encoding='utf-8') | |
# perform file operations | |
finally: | |
f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment