A game that I am writing in java will require some files to be written locally for anyone that downloads the game, this is for high scores, images, achievements, etc...
Current code:
File file = new File("C:\\Directory\\File.txt");
But what I need (since I'm not going to be the only one using this) is to find the directory in which the user will download the game and operate the game, thus I can write the necessary files (on launch) to their local directory (in order to access and write to).