Reading a specific column from .csv into fortran

  • #1
rajith
1
0
Hi, I am using fortran to read specific columns from a .csv file. the rows in each columns are different, so I wish to read columns wise with a do loop. say, I wish to read from A1 to D20 initially(4 columns of 20 rows), then later f1 to h35 (3 columns, 35 rows). how do I read particular columns alone. thanks
 

Answers and Replies

  • #3
Vanadium 50
Staff Emeritus
Science Advisor
Education Advisor
2021 Award
29,159
14,392
You have to read all columns and pick the one you want.

True, but only one of them has to be an array.
 

Suggested for: Reading a specific column from .csv into fortran

Replies
9
Views
475
  • Last Post
Replies
14
Views
1K
  • Last Post
Replies
34
Views
2K
  • Last Post
Replies
1
Views
474
  • Last Post
Replies
12
Views
483
Replies
12
Views
813
  • Last Post
Replies
2
Views
366
Replies
5
Views
631
  • Last Post
Replies
8
Views
502
Replies
2
Views
430
Top