Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

reading a file column wise

 
santosh kimothi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
 
Joe Ess
Bartender
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are the columns fixed-width? If so, you could use a RandomAccessFile.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic