File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
I/O and Streams
How to read tab delimited file
Joined: Jul 28, 2005
May 05, 2006 18:59:00
How to read and parse tab delimited file using JDK 1.3 API. In 1.4 we have split function in
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.
Joined: Jan 29, 2003
May 05, 2006 19:20:00
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
subject: How to read tab delimited file
creating tab delimited file
How to insert data from file excel into DB?
Best way to open a text file
Swing Open Dialog and the rest of my program
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014