File I/O

say i have a file with 4 lines and each line contains 20 elements. I want to be able to load the each group of 20 into a different array of String. Does anybody knows now to do that?

a, b, c, d are example of strings but ofcourse in my program they will not be abcd they will have different names

/////////////////////////////////////////

My txt file:

a1,a2,a3,...,a20,

b1,b2,b3,...,b20,

c1,c2,c3,...,c20,

d1,d2,d3,...,d20,

/////////////////////////////////////////

every element is seperated by a coma(,)

i want to load all the (a)s into an array of 20 and all the (b)s into

another array of 20 and all the (c)s into another array of 20 and

all the (d)s into another array of 20

[822 byte] By [Java@newa] at [2007-10-3 8:29:45]
# 1
Use a StringTokenizer or String.split(...).
camickra at 2007-7-15 3:36:40 > top of Java-index,Java Essentials,Java Programming...
# 2
Hey thanks. :)
Java@newa at 2007-7-15 3:36:40 > top of Java-index,Java Essentials,Java Programming...