If a user starts the game for the first time and the high score file is not present it is created, however it is not populated until the end of the game. If the user exits the game before the file is written then the next time the game is run there will be a noSuchElement exception from the scanner.
If a user starts the game for the first time and the high score file is not present it is created, however it is not populated until the end of the game. If the user exits the game before the file is written then the next time the game is run there will be a noSuchElement exception from the scanner.