Reading two data blocks from a file in FORTRAN and outputting them side by side

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views
abhi1117
Messages
1
Reaction score
0
Hey

I have a text file with 2 blocks of Data

Example

Numbers 1:
1,2,3,4,5,6
7,8,9,10,11
...

Numbers 2:
92,93,94,95,96
97,98,99,100,101
...

How would i use FORTRAN to read the text file and output in a column and row format..

Example


1 92
2 93
3 94
etc..


I am an amateur and need some help

Thanks
 
Physics news on Phys.org
To get the help you need to show what you've tried, we can't write the program for you.

If you search online for how to read in numbers from a text file in Fortran that should be a beginning then post your program and ask questions.