SyntaxFix
Write A Post
Hire A Developer
Questions
I changed Scanner fin = new Scanner(file); to Scanner fin = new Scanner(new File(file)); and it works perfectly now. I didn't think the difference mattered but there you go.
Scanner fin = new Scanner(file);
Scanner fin = new Scanner(new File(file));