Hello,
I'm currently having some problems with the StringTokenizer from
java util.
I've declared a StringTokenizer like:
StringTokenizer token = new StringTokenizer(line,"|");
to token out a string read from a txt file such as:
Diablo|RPG|PG|PS2|20
and it works fine(detects all the "|" as delimeters) :)
The problem now is, if I have lines with spaces like:
C&C Generals|Real Time Strategy|PG|PS2|20
it detects the spaces as well and the tokenizing is out. :sad:
So, I'm wondering if anyone out there can help me solve this problem. I just want the tokenizer to recognize "|" as a delimiter and not anything else.
Thanks in advance.