This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes StreamTokenizer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "StreamTokenizer" Watch "StreamTokenizer" New topic
Author

StreamTokenizer

Hagaya Hatake
Greenhorn

Joined: Feb 01, 2006
Posts: 5
Hi
I'm used to StringTokenizer but wanted to know how to use StreamTokenizer.
I know that I must start like this:

but I don't know how to continue. I want space "s" and space to be delimiters but how do I do that??? Is it possible???
In StringTokenizer if I want to make "s" be a delimiter I will do this:


where the first s is the fileName.
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
this link may help you.

wise
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: StreamTokenizer
 
Similar Threads
StringTokenizer
finding token data type (StringTokenizer)
append a space if found dbl separator
Java search engine query
append a space if found dbl separator