I'm trying to open the files in my folder but it came out with this error:
FileNotFoundError: [Errno 2] No such file or directory: 'TRAIN_00000.eml'
I had double check the file name and the directory/path written in the code but the problem still there.
Here's the chunk of code:
import os
path = "C:\\Users\\...\\TRAINING"
listing = os.listdir(path)
for em in listing:
file = open(em, 'rb')
e_content = file.read()
file.close()
print (e_content)
Any help is appreciated. :)