Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. __author__ = 'aleksandr'
  2. import io
  3.  
  4.  
  5. class File:
  6. def __init__(self):
  7. pass
  8.  
  9. def save_file(self, path, content, flag):
  10. with io.open(path, flag) as f:
  11. f.write(content)
  12.  
  13. def read_file(self, path):
  14. with open(path) as f:
  15. content = f.read()
  16. return content
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement