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.