cjkogan111
Technical User
Hello,
I have a somewhat amateur question about fortran 95...
I was wondering if anyone knew a good method of reading columnar files - with each column going into a vector.
For example I might have the following file:
1.0 4.0 2.5
3.3 3.5 8.0
1.0 2.0 2.1
5.0 2.0 5.4
What I would like to do is read each of the columns into vectors a,b,c {col1 into a, col2 into b, col3 into c}
I know how to open the file, what I'd like to know is how to use the READ / FORMAT statements to read in information this way.
Thanks!
cjkogan111
I have a somewhat amateur question about fortran 95...
I was wondering if anyone knew a good method of reading columnar files - with each column going into a vector.
For example I might have the following file:
1.0 4.0 2.5
3.3 3.5 8.0
1.0 2.0 2.1
5.0 2.0 5.4
What I would like to do is read each of the columns into vectors a,b,c {col1 into a, col2 into b, col3 into c}
I know how to open the file, what I'd like to know is how to use the READ / FORMAT statements to read in information this way.
Thanks!
cjkogan111