hey thanks for the replies and the countTokens() method, using that.
Trying to extract data from text file, then run calculations on it. I have lines like this:
1 3 -2.0566 -1.8459 -1.1465d
2 27 -8.4587 1.4545 2.7890w
trying to extract the 3d coordinates (the last 3 columns) and caclulate the distance between em.
creating a multidomensional array and using for loops, so should be able to use the tokens within that?
if i use: for ( int j = 0; j <= tokenizer.countTokens(); j++);
it should just stop when i reach the last token.
hopefully it will work out as planned
thanks for your help so far