Skip to content

Instantly share code, notes, and snippets.

@vihar
Created July 27, 2017 21:07
Show Gist options
  • Save vihar/3844a78f7da3946e25ff4ee04985fe30 to your computer and use it in GitHub Desktop.
Save vihar/3844a78f7da3946e25ff4ee04985fe30 to your computer and use it in GitHub Desktop.
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