I was involved in a Computer Science competition, and I'm trying to figure out the questions. Part of the hand on section requires you to get info from a .dat file. Part of the code I used is:
Scanner trick = new Scanner(new File("trick.dat"));
int i= trick.nextInt();
I think I did that okay, but I get a FileNotFoundException. What should I do to the file/code to make it work?
Edited by: ffccguy on Apr 4, 2008 3:10 PM