Hey, I'm only now noticing how picky the
java file readers are. I'm using Scanner to scan a file in code below:
And the format for the file is:
0:true:true/a-1:b-2:c-0
1:false:true/a-2:b-2:c-1
2:false:true/a-1:b-0:c-2
But unless I'm very specific with the format of my file, the whole thing breaks. If I hit return after typing everything in my file, or if I press space after typing a single line, everything goes downhill.
I tried using the skip() method to skip
patterns like a space or two new lines feeds in a row, but it doesn't seem to work. Can anyone suggest anything else I might try?
Thanks so much and have a nice day!
[ May 31, 2007: Message edited by: Vanessa Astle ]