File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes I/O and Streams and the fly likes reading a file column wise 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 "reading a file column wise" Watch "reading a file column wise" New topic

reading a file column wise

santosh kimothi
Ranch Hand

Joined: Jun 10, 2009
Posts: 32
i want to read a text file which is having three columns,
is there any way to read this file column wise and save each column values in three separate arrays

please help me ...

Santosh Kimothi,
Java programmer
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

Are the columns fixed-width? If so, you could use a RandomAccessFile.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: reading a file column wise
It's not a secret anymore!