file.py 183 Bytes
Newer Older
1
2
3
4
5
6
7
8
def read_file(file):
    with open(file, "r") as myfile:
        return myfile.read()


def write_file(file, data):
    with open(file, 'w') as the_file:
        the_file.write(data)