I'm getting a really annoying parse error when I try to generate CSD. I really don't know why I'm getting this error.
The compiler is telling me it's at this line:
Does anybody know what's wrong with this?
PrintStream outfile = new PrintStream(new FileOutputStream((filename.getText()) + ".txt"), true);
What error are you getting?
I'm not sure what the "filename" variable is set to so I can't know what is wrong.
"filename" is a JTextField. It just says "parse error" when I try to generate CSD and when I try to compile, it says "not a statement" and it also tells me it's expecting a semicolon after "PrintStream" and before "outfile".