It's maybe a simple question. Suppose you have several data files, each
of them have different length and will be read in by your program. Usually
you have to specify the corresponding array length in your program
otherwise you would run in trouble in read. I want to know if there is a
mean in Fortran to read data file without specify the size, something like
that in MATLAB:
r1=myfile(:,1)
or
fscanf(fid,'%g %g',[2 inf]);
Thus, all the data will be read in and we can get the size of array by
simple command size(...).
Many thanks.
Yongcheng
|