PrintWriter out =
new PrintWriter("C:\Users\Slerig\Desktop\gnuplot\binary\cannonballOutput.txt");
This is my sample code. It is quite simple. It throws a “Invalid Escape Character” error because of the backslashes. How do I get around this? Programming in Java btw.
You’ll have to escape
\with\\in your string (or use/instead)Use