Question: How to read in data??

Hello,

I´m a maple rookie and I need help to read in data from a text file. I´ve tried sscanf, readdata, readline but nothing works in a proper way.

My text file looks like that:

1 2 3 4 5 6
2 4 6 8 10 12
3 6 9 12 15 18

In MAPLE the data must look like this:
The first 3 values of the first line should be a vector p[1] := <1, 2, 3> the other values shoud be a vector n[1] := <4,5,6>
2nd line p[2] := <2,4,6> and n[2] := <8,10,12> and so on.
 

Please send me an example!

BR
CHR

Please Wait...