|
|
Finally, I use the loop which is like the following loop.
I don't get any problem ,but I don't know why I can't use ABX's way to
write my loop.
Anyway, thank you.
#declare N=23431; // fill with
#declare M=3; // favorite dimensions
#declare Ar=array[N][M];
#fopen MyFile "data.txt" read
#declare n=0;
#while (n<N)
//#declare m=0;
//#while (m<M)
#read(MyFile,a,b,c)
#declare Ar[n][0]=a/100 ;
#declare Ar[n][1]=b/100 ;
#declare Ar[n][2]=c/100 ;
// #declare m=m+1;
//#end
#declare n=n+1;
#end
#fclose MyFile
Post a reply to this message
|
|