Glad to help.
Happy coding :cool:
Type: Posts; User: ChristopherLowe
Glad to help.
Happy coding :cool:
Well I saved the file you shared and made a few modifications to your code (just sanity stuff, nothing really changed)
Scanner scanner;
int lineNumber = 0;
try {
scanner = new...
Drop the file in Pastebin. Whatever is going on is an issue with the text file, not the code.
I'd hazard a guess to say that there is some funky encoding in the text file that is messing around with the Scanner. Try specifying the charset to something like UTF-8 and see if that helps:
...