Hi: I know that I can break a string into tokens by using StringTokenizer but how do I accomplish this task if I am using FileReader to read the file as characters? (if possible please provide sample code) Thanks.
Check out the API for StreamTokenizer.StreamTokenizer Here is an article describing how to use it with code samples.Using StreamTokenizer Hope that helps, E
My theory of evolution is that Darwin was adopted. - Steven Wright
Another common technique (usually easier then StreamTokenizer, but it depends what you're doing) is to use a BufferedReader to read one line at a time: