Spaces:
Sleeping
Sleeping
File size: 377 Bytes
7d9d14f |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import json
def open_file(filepath):
with open(filepath, 'r', encoding='utf-8') as infile:
return infile.read()
def save_file(filepath, content):
with open(filepath, 'w', encoding='utf-8') as outfile:
outfile.write(content)
def append_file(filepath, content):
with open(filepath, 'w', encoding='utf-8') as outfile:
outfile.write(content) |