f = open('buddy.txt','r')
data = f.read()
print(data)
f.close()
error:
File "c:\Users\97798\Desktop\python\Chapter_09\01_files.py", line 10, in <module>
f = open('buddy.txt','r')
FileNotFoundError: [Errno 2] No such file or directory: 'buddy.txt'