Created
October 22, 2012 04:34
-
-
Save niceaji/3929654 to your computer and use it in GitHub Desktop.
file_get_content
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
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