I'm having trouble using the java.util.Scanner class to delimit a file. What I am trying to do is break up a file which is separated by the * (asterisk) character.
The file is something like this:
Here's what I have tried so far:
labelFile = new Scanner(new File("Text.txt"));
labelFile.useDelimiter("*"); //Also tried "\u002A"
I can't seem to get any character-based patterns to work. Anyone see what I am doing wrong? Thanks for any help.