We are about to switch to a new forum software. Until then we have removed the registration on this forum.
    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
@lolnyancats=== your code works (as for the output() method); see your condition ...