Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading Columnar Data

Status
Not open for further replies.

cjkogan111

Technical User
Jul 12, 2007
5
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top