From one point to another..

I am reading from a text file, the format is like

question|choice1|choice2|answer

Ok, I got it fine to read the "question" in to the variable but then I am not sure how to get from the | after "question" to the | after "choice1". When I try to do line.indexOf it only goes to the first occurence of | in the line. Any help?

[349 byte] By [BartGW] at [2007-9-27 1:09:06]
# 1
look at StringTokenizer
armalcolm at 2007-7-4 18:37:54 > top of Java-index,Archived Forums,Java Programming...