File size: 660 Bytes
a5b9fc6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os

class FileReader:
    def __init__(self, file_path):
        """
        Initialize the FileReader with the file path.
        """
        self.file_path = file_path

    def read_file(self):
        """
        Read the file and return the content.
        """
        if os.path.exists(self.file_path):
            with open(self.file_path, 'r') as file:
                content = file.read()
            return content
        else:
            return "File not found"

def main():
    file_reader = FileReader('/home/user/app/gpt-engineer/hist.txt')
    content = file_reader.read_file()
    print(content)

if __name__ == "__main__":
    main()