[ VSCODE ] it's a simple code to read a text file, but it keeps giving me errno 13
with open('movie.txt') as file_object:
content = file_object.read()
print(content.strip())
the file is saved as movie.txt, but when i used that it said there was no file under that name, when I do in fact have it saved. when i changed changed to with open('movie'), without the .txt extension, it said permission error. I've searched everywhere but i cant find the solution.
UPDATE : works if i use absolute path.