Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __author__ = 'aleksandr'
- import io
- class File:
- def __init__(self):
- pass
- def save_file(self, path, content, flag):
- with io.open(path, flag) as f:
- f.write(content)
- def read_file(self, path):
- with open(path) as f:
- content = f.read()
- return content
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement