1 00:00:00,000 --> 00:00:01,135 [No audio] 2 00:00:01,160 --> 00:00:05,912 So far, our basics.py and our fruits.txt file 3 00:00:06,085 --> 00:00:07,230 were in the same 4 00:00:07,255 --> 00:00:09,955 directory, in the same folder. That 5 00:00:09,990 --> 00:00:13,350 allowed us to only write the name of the 6 00:00:13,350 --> 00:00:17,310 file in the basics.py file. However, if 7 00:00:17,310 --> 00:00:20,400 the fruits.txt file was, for example 8 00:00:20,430 --> 00:00:22,655 inside this other directory, 9 00:00:22,679 --> 00:00:25,611 [No audio] 10 00:00:25,636 --> 00:00:29,940 so I just moved fruits.txt inside files. files 11 00:00:29,970 --> 00:00:32,400 is a folder that is in the same 12 00:00:32,400 --> 00:00:37,155 directory with basics.py. So basics.py 13 00:00:37,179 --> 00:00:39,000 in the same folder with scripts with 14 00:00:39,000 --> 00:00:43,500 files, and fruits is inside files. In that 15 00:00:43,500 --> 00:00:47,700 case, if you execute the basics.py file, 16 00:00:47,836 --> 00:00:50,708 you're going to get a FileNotFoundError. 17 00:00:51,663 --> 00:00:55,381 No such file or directory fruits.txt, 18 00:00:56,080 --> 00:00:57,480 and that is true, there's no 19 00:00:57,480 --> 00:01:00,480 fruits.txt in the folder 20 00:01:00,480 --> 00:01:05,820 where basics.py is, so what you 21 00:01:05,820 --> 00:01:09,120 need to do is you need to specify the 22 00:01:09,120 --> 00:01:12,450 complete path to the file relative to 23 00:01:12,450 --> 00:01:17,721 the basics.py, that is files/fruits.txt. 24 00:01:17,746 --> 00:01:19,861 [No audio] 25 00:01:19,899 --> 00:01:21,763 Execute that and things will work. 26 00:01:21,787 --> 00:01:25,573 [No audio]