Fortran Using FORTRAN to Read & Output Text Data in Column & Row Format

AI Thread Summary
To read a text file containing two blocks of data in Fortran and output them in a column and row format, it's essential to start by researching how to read data from files in Fortran. Users are encouraged to attempt writing their own code and share it for feedback. Providing a sample of what has been tried is crucial for receiving targeted assistance. The community emphasizes the importance of self-initiative in learning programming, suggesting that users familiarize themselves with file input methods in Fortran before seeking further help.
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
 
Technology 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.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

Similar threads

Replies
2
Views
3K
Replies
12
Views
3K
Replies
5
Views
5K
Replies
2
Views
1K
Replies
6
Views
2K
Replies
2
Views
2K
Replies
4
Views
2K
Replies
5
Views
3K
Back
Top