Im use this path to go back 1 directory (back to directory 'dsa')
with open('../file.txt','r',encoding='utf-8') as f:
print(f.read())
I get this error
Traceback (most recent call last):
File "c:\Users\Secret\Desktop\Code\dsa\main.py", line 1, in <module>
with open('../file.txt','r',encoding='utf-8') as f:
FileNotFoundError: [Errno 2] No such file or directory: '../file.txt'
my version of Python is 3.10.2