Created
February 20, 2017 19:35
-
-
Save LiamJolly/c0e4bdaa289a7423a4540ec2582b48ef 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
def write_file(path, content): | |
file_to_write = open(path, "w") | |
file_to_write.write(content) | |
file_to_write.close() | |
def read_file(path): | |
with open(path, 'r') as file_to_read: | |
data = file_to_read.read() | |
return data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment