Where is output.txt?
I created a FileWriter called outstream, and so I specified its destination as:
outStream = new FileWriter("output.txt");
I was able to run my program without any bugs, but now I have no clue as to where the output was actually written. I'm currently using Windows Vista, and I'm using Eclipse 3.5 Galileo.
Put in the line:
And then check out that directory
I tried to use that line, without the quotes as well, but it didn't understand what user was. I'm not sure if that means to replace user with my own username, but I don't know what that is either. Thanks, though.
I figured out a different solution. I ended up just going to File -> Open File, then I just inserted into the search box to find it on my computer. I'm still puzzled as to why it wasn't in a more obvious place.
"user.dir" is a property - retrieved via System.getProperty.
The posted code didn't call the method, it was a typo.
Run this line (exactly as is) - that's where the file will be saved.