Skip to content

Instantly share code, notes, and snippets.

@musoftware
Created August 2, 2018 23:14
Show Gist options
  • Select an option

  • Save musoftware/476b839acb156a9403c0918cbee1b2ec to your computer and use it in GitHub Desktop.

Select an option

Save musoftware/476b839acb156a9403c0918cbee1b2ec to your computer and use it in GitHub Desktop.
Open File
def file_get_contents(filename):
with open(filename) as f:
content = f.read()
f.close()
return content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment