File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "StreamTokenizer" Watch "StreamTokenizer" New topic


Hagaya Hatake

Joined: Feb 01, 2006
Posts: 5
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.

I agree. Here's the link:
subject: StreamTokenizer
It's not a secret anymore!