I'm struggling with reading a file in python, the py file and CSV file are in the same folder but the VSCode makes an error and can't find the file:
import csv
with open('file.csv','r') as f:
reader = reader(f)
...
how can I fix this?? and the error is:
Exception has occurred: FileNotFoundError [Errno 2] No such file or directory: 'file.csv'