Gidday Kelsey,
I think this is what you want.
StringTokenizer st = new StringTokenizer(myString, '|');
cheers pb..
Kelsey Fedde wrote:
>
> Been trying tons of modifications for a couple days now with no luck.
>
> Been to all the web sites I could possibly find and the best they do is give
> general explanations with no specific examples.
>
> I am trying to modify and stringtokenizer servlet to go through a text file
> and display the table on a web site with the content of the text file.
>
> The problem is, how do I tell the servlet to not use "whitespace" and the
> separator
> (but some other symbol "such as '|' ) between the tokens? I would like to
> put <HTML>
> string in my text file but each space is treated as a separator.
>
> Can this even be done or would I be better off to rewrite something as a
> streamtokenizer?
>
> thanks!
> Kelsey
>
Peter Blakeley
Head of Software Development Coolcat Software Pty. Ltd.
http://www.coolcat.com.au/
Director Bug Audit Services
http://www.coolcat.com.au/bug_audit
A financial instrument is a device used by a Banker to pick your pocket.
It is said an art degree is a licence to know it all, I am lucky I need
no art degree.
;-})
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html