FileNotFoundException The file is right there

I’m writing a project and I think I have everything down except the program close, where I want the program to save the data I have. I can’t figure out why the program can’t find output.txt though. It’s in the same directory as (and Main.class), so just using output.txt should be fine. I just need to know where the issue is.
Repl link:

PrintWriter saveFile = new PrintWriter("output.txt");

Reloading the page apparently was enough to solve the problem.