Search:

Type: Posts; User: ineedahero

Search: Search took 0.07 seconds.

  1. Replies
    9
    Views
    908

    [SOLVED] Re: Very simple file I/O question

    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.
  2. Replies
    9
    Views
    908

    [SOLVED] Re: Very simple file I/O question

    Errr that formatting seems to be bad


    TicTacToe.java:154: error: cannot find symbol
    output.println(player.name + " " + player.symbol + " " + player.numWins + " " +...
  3. Replies
    9
    Views
    908

    [SOLVED] Re: Very simple file I/O question

    Here it is


    output.println(player.name + " " + player.symbol + " " + player.numWins + " " + player.numLosses);
    ^
    symbol: method println(String)
    location: variable...
  4. Replies
    9
    Views
    908

    [SOLVED] Re: Very simple file I/O question

    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,...
  5. Replies
    9
    Views
    908

    [SOLVED] Very simple file I/O question

    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...
Results 1 to 5 of 5