1
00:00:01,210 --> 00:00:09,310
So far our basics.py and our fruits.txt files were in the same directory, in the same folder.

2
00:00:09,670 --> 00:00:15,920
That allowed us to only write the name of the file in the basic stats P Y file.

3
00:00:16,370 --> 00:00:25,750
However if the fruits.txt file was for example inside this other directory,

4
00:00:25,750 --> 00:00:33,180
so I just moved fruits.txt inside files, files is a folder that is in the same directory with

5
00:00:33,200 --> 00:00:41,060
basics.py so basics.py in the same folder with scripts, with files, and fruits is inside files.

6
00:00:41,060 --> 00:00:50,730
In that case if you execute the basics.py file you're going to get a file not found error

7
00:00:51,930 --> 00:00:55,260
No such file or directory fruit.txt.

8
00:00:56,250 --> 00:01:03,740
And that is true there is no fruits.txt in the folder where where basic.py is.

9
00:01:03,900 --> 00:01:13,290
So what you need to do is you need to specify the complete path to the file relative to the basics.py.

10
00:01:13,290 --> 00:01:21,720
That is files slash fruits.txt. Execute that and things will work.

