FileNotFoundError: [Errno 2] No such file or directory: ''

Quentin Bock qberz2005 at gmail.com
Wed Apr 14 12:13:38 EDT 2021


I receive this error when I try to open a file
The file (what I'm trying to open) is in the same folder as the program I'm
trying to open it from; why is it saying no such file or directory?

this is the only part of the code that causes the error

file = open('Egils Saga 1-15.txt', "r")

file.close()


More information about the Python-list mailing list