Skip to content

Instantly share code, notes, and snippets.

@niceaji
Created October 22, 2012 04:34
Show Gist options
  • Save niceaji/3929654 to your computer and use it in GitHub Desktop.
Save niceaji/3929654 to your computer and use it in GitHub Desktop.
file_get_content
def file_put_content(filename, content):
f = open(filename, 'w')
f.write(content)
f.close()
def file_get_contents(filename):
return open(filename).read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment