If you are using
Java 1.5, then
you should use the Scanner class instead. It provides some methods that allow you to conveniently read primitive types from a stream. If you want to stick with the old-school i/o classes, take a look at the
I/O Trail from Sun's Java tutorial (see the link in my signature for the full tutorial). If you use the right I/O classes, you won't even need to use a tokenizer. You should browse through the java.io package in the API (link in signature) to see if you can find any classes and methods will help you with this task.
Layne
[ February 01, 2006: Message edited by: Layne Lund ]