Oh okay, I just did it.
You're supposed to use "write" not "println" ..... they're very sneaky!!
Haha, thanks a lot for the help man. Finally got it up and compiling.
Type: Posts; User: ineedahero
Oh okay, I just did it.
You're supposed to use "write" not "println" ..... they're very sneaky!!
Haha, thanks a lot for the help man. Finally got it up and compiling.
Errr that formatting seems to be bad
TicTacToe.java:154: error: cannot find symbol
output.println(player.name + " " + player.symbol + " " + player.numWins + " " +...
Here it is
output.println(player.name + " " + player.symbol + " " + player.numWins + " " + player.numLosses);
^
symbol: method println(String)
location: variable...
What exactly do you mean by "use FileWriter instead"?
I changed
java.io.PrintWriter output;
output.open(file);;
To
java.io.FileWriter output = new java.io.FileWriter(file,...
So I'm practicing file I/O, but I know nothing about it in java.
I keep getting my file erased every time I call my function.
What happens is this:
I call the "createNewPlayer" function, and...