That's way too much code to show for the problem you're having. The problem is presumably that you're trying to read in a long when the file contains something else. Try reading it in as a String and...