Answer the question
In order to leave comments, you need to log in
In what directory should files be stored for their opening and further reading through open, read, etc.?
The text file that I want to read in Python is stored in the same directory as the program in which I want to open and read the same text file, but when I run the program, I get the error No such file or directory: 'text.txt'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question