dn123
07-14-2010, 05:13 AM
hello...
i have nearly 100 files in ascii format. in every file there are 5 collums i,j,x,y,z. i and j are integer and x,y,z are real.i want to make arrays of x,y,z like x(i,j),y(i,j)and z(i,j).i have put all the file in the list.now wat i want to do ,like i first read the 1 file from the list and make an array like x(i,j),y(i,j)and z(i,j)..
now when i read the 2 file from the list i can compare the values in the last collum with i,and..j....
for eg ..for i=1,and j=5, if for first file z(i,j)=a
then for the same i,j value what it will be for the second,and so on...
i need an output like
i j z(i,j)
a b c1
a b c2
a b c3
. . .
. . .
and so on....
regards
dn123
i have nearly 100 files in ascii format. in every file there are 5 collums i,j,x,y,z. i and j are integer and x,y,z are real.i want to make arrays of x,y,z like x(i,j),y(i,j)and z(i,j).i have put all the file in the list.now wat i want to do ,like i first read the 1 file from the list and make an array like x(i,j),y(i,j)and z(i,j)..
now when i read the 2 file from the list i can compare the values in the last collum with i,and..j....
for eg ..for i=1,and j=5, if for first file z(i,j)=a
then for the same i,j value what it will be for the second,and so on...
i need an output like
i j z(i,j)
a b c1
a b c2
a b c3
. . .
. . .
and so on....
regards
dn123