save input from text file to array
Posted
by Jessy
on Stack Overflow
See other posts from Stack Overflow
or by Jessy
Published on 2010-03-28T17:57:48Z
Indexed on
2010/03/28
18:03 UTC
Read the original article
Hit count: 205
How to save txt file content to different arrays?
my txt file content is like this;
12 14 16 18 13 17 14 18 10 23
pic1 pic2 pic3 pic4 pic5 pic6 pic7 pic8 pic9 pic10
left right top left right right top top left right
100 200 300 400 500 600 700 800 900 1000
how can I save each line into different array? e.g. line 1 will be saved in an array1 line 2 will be saved in an array2 line 3 will be saved in an array3 line 4 will be saved in an array4
Thanks you
© Stack Overflow or respective owner