Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class File:
- def __init__(self):
- self.path='inputexample.txt'
- def open_read(self): # функция открывает и считывает файл
- file = open(self.path)
- content = file.read()
- print(content)
- open_read()
Add Comment
Please, Sign In to add comment