Say I have a pac-man applet and I have a counter that increments every time a dot is eaten, and I want to save that for every player, for every game, so there will be a total number of dots eaten from everybody combined. The counter will never reset, just get larger. I want to use this number so I could put something on my web page like "123456 Dots Eaten Since June 2010" or something like that.
All I have is just a counter variable that keeps track of the dots for just one game at a time. Do I need to use a database or just use printWriter or something and keep a txt file to save the counter variable from game to game?