Win a copy of Design for the Mind this week in the Design 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
Pie
Posts: 9264
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