Question: Readfile with different columns

Suppose I have a file, test.txt, which the content is

 

2
2 0.0 0.0 0.0
1 0.0 0.0 1.6

 

I would like to save 

Z:=2;

C[1,1]:=2;C[2,1]:=0.0;C[3,1]:=0.0;C[4,1]:=0.0;

C[1,2]:=1;C[2,2]:=0.0;C[3,2]:=0.0;C[4,2]:=1.6;

 

However, if I use readdata("...",4), seems it do not work.

 

Is there any flexible command in maple can readfile with different column? Thank you very much!

Please Wait...