Censor Dispensor in VS Code

So I am currently trying to get the Censor Dispensor Challenge project started. I use VS Code as my editor and have it set up to run code, but when I try to run this program all it does is give me this error:

FileNotFoundError: [Errno 2] No such file or directory: ‘email_one.txt’

I have everything in the same folder, and it works when I execute the file in command prompt, but it doesn’t work in VS Code. Any idea of what to do? I would like to use VS Code so I can use the debugger

Have you verified what the working directory is when using VS code to execute the script?

1 Like