Skip to content
Permalink
Branch: master
Find file Copy path
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
You can’t perform that action at this time.