Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (10 sloc) 242 Bytes
def write_file(fn, text):
with open(fn, 'w') as f:
f.write(text)
def change_file(fn, text):
with open(fn, 'a+') as f:
f.write(text)
def read_file(fn):
with open(fn) as f:
result = f.read()
return result