wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "How to read tab delimited file" Watch "How to read tab delimited file" New topic
Author

How to read tab delimited file

Sunil Dumpala
Greenhorn

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.

Thanks,
Sunil
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: http://aspose.com/file-tools
 
subject: How to read tab delimited file
 
Similar Threads
Acces table
Swing Open Dialog and the rest of my program
Best way to open a text file
creating tab delimited file
How to insert data from file excel into DB?