Francis Low wrote:
Ah... Any idea how to rid that extra part? Or is there another way to scan the file?
Either will work... the token returned is a string, so you can use the java.lang.String class API to get rid of it. The useDelimiter() method takes a regex, so you can modify the regex to include the optional carriage return. And finally, you can use something in the Scanner class to get the CR first. You have lots of options here.
Joined: Feb 02, 2010
I tried this
Still doesn't seem to work. The number seems to not be recognised as a character. The exception thrown is the same as above, except the input this time is