Hi,
I am not able to access the file apple.txt stored at location
/home/radheshyamkori4902/apple.txt
when I try to run the below program from my jupyter notebook.
import re
hand = open(‘apple.txt’)
for line in hand:
line = line.rstrip()
if re.search(‘Apple:’, line):
print(line)
It gives following error
FileNotFoundError Traceback (most recent call last)
in
1 import re
----> 2 hand = open(‘apple.txt’)
3 for line in hand:
4 line = line.rstrip()
5 if re.search(‘Apple:’, line):
FileNotFoundError: [Errno 2] No such file or directory: ‘apple.txt’
Please help me as earlier I was able to access it and have run many programs, but now I am not able to access it
Thanks & Regards,
Radhe