Question about PrintWriter

    out=createWriter("highscore.txt");
  }
  void output() {
    if (gamemode==2) {

      for (int i=0; i<10; i++) {
        out.println(0);
      } 

      out.flush();
    }

doesn't work... i am not sure why... I am trying to get it to print 10 zeros and then flush puts all of the info into the file, what am i doing wrong

Answers

Sign In or Register to comment.