Meaningless Drivel is fun!
The moose likes I/O and Streams and the fly likes How to read tab delimited file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "How to read tab delimited file" Watch "How to read tab delimited file" New topic

How to read tab delimited file

Sunil Dumpala

Joined: Jul 28, 2005
Posts: 29
How to read and parse tab delimited file using JDK 1.3 API. In 1.4 we have split function in string that takes regualr expression as parameter but how to achieve this in JDK 1.3.

Unfortunately I am stuck up with a project that still uses jdk 1.3 and I am on a short deadline. Any help would be appreciated.

Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
See if StringTokenizer won't take a tab as the delimiter.

new StringTokenizer( myString, "\t" );

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: How to read tab delimited file
It's not a secret anymore!