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 Main.java (and Main.class), so just using output.txt should be fine. I just need to know where the issue is.
PrintWriter saveFile = new PrintWriter("output.txt");