• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to read tab delimited file

 
Sunil Dumpala
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See if StringTokenizer won't take a tab as the delimiter.

new StringTokenizer( myString, "\t" );
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic