Read Files

Dear sirs ,I want to arrange some numeric data in array format . presently the data is in simple text foramted seperated by tabs or commas. Do we ahve some method to get the data formated and printed in seperate 2-D arrays thanks ..
[267 byte] By [ahs786a] at [2007-10-3 8:29:23]
# 1
Huh?
jverda at 2007-7-15 3:36:14 > top of Java-index,Java Essentials,Java Programming...
# 2

what i would do would be to have a header kinda that represents how many things following it will be in the first dimension, and after that have a second header for the second dimension and read lines instead of tokens kinda like

DataInputStream reader = new DataInputStream(...);

header = reader.readInt();

while(header > 0)

array[...][array.length-header-1]= reader.readInt();//or whatever your reading

is that what you were looking for? otherwise your gonna have to explain what you want a lil better

either way your gonna have to nest loops somehow

sosleepya at 2007-7-15 3:36:14 > top of Java-index,Java Essentials,Java Programming...