0

Please help me out

I have opened a txt file with the name demo.txt but when I'm typing it out on python and running the program it says file not found. Where am I going wrong? https://code.sololearn.com/clqfLYHk4Vv1/?ref=app

19th Apr 2020, 5:57 AM
Jatin gurnani
Jatin gurnani - avatar
2 Answers
0
May be both are in different directories... Once check it out... 👍
19th Apr 2020, 6:20 AM
sarada lakshmi
sarada lakshmi - avatar
+ 4
The easy way to find out wheter it work is first to write a test file from the same code wher you want to open it. And then to look if the test file can be opened. If it works you can see in which directory will be written and put your txt file there. After that you can learn how will be moved trough different directories.
19th Apr 2020, 9:00 AM
JaScript
JaScript - avatar