The system cannot find the file specified
two hours to figure this out??
“highscore.txt” should be in your project’s base directory, not in any of the directories that NetBeans has created for you. In your case, it should be in:
C:\Documents and Settings\Collin\My Documents\NetBeansProjects\Yahtzee
Alternatively, you can find out where your file points to in your Java code:
File file = new File("highscore.txt");
This should output the system-dependent, unique path to where the virtual machine believes the file is, so you can see where the discrepancy is.