Visual Studio Code – Showing FileNotFound Error when trying to open file from another directory in python
parentDirectory subdr1 -testfile.txt subdr2 childdir -file.json -file2.pickle -fileOpener.py I would like to read the file.json from fileOpener.py in Python using: with open("./childdir/file.json", 'r') as f: But I'm getting FileNotFoundError. FileNotFoundError: [Errno 2] No such file or directory: './childdir/file.json' Would anyone…