It worked fine at first, but now I get a weird result:
Leser fra fil HaiHus.data
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
This is the content of the file:
What does the error mean?
[ October 06, 2007: Message edited by: Kari Nordmann ]
Also, where do you get your "easyIO" package? It's not part of standard java as far as I know.
[ October 06, 2007: Message edited by: pete steinbear ]
I tried using System.out.println to show me every value gathered, and the error occurs after all values have been gathered and I'm supposed to be at the end of the file.
But "while (!innfil.endOfFile())" is supposed to make sure that doesn't happen...
Still need to see an SSCCE?