Fortran How to format a data ascii file in Fortran on RedHat linux?

  • Thread starter Thread starter Fortran_begin
  • Start date Start date
  • Tags Tags
    Fortran
AI Thread Summary
A user seeks assistance in converting a data ASCII file containing real and integer values, separated by commas, into a specific Fortran format: FORMAT(5I3,F7.2,F6.2,F8.3,F7.2,F10.3,2F7.2,F6.2,I4,f6.1,F6.2). The user is a beginner in Fortran programming and uses RedHat Linux for compilation. The response emphasizes the importance of demonstrating prior efforts and asking specific questions rather than requesting complete solutions.
Fortran_begin
Messages
1
Reaction score
0
it is my first post and It is very serious and urgent
I have a data ascii file composed of real and integer data.
these data are separated by commas.

would any of you write some code to change its format into this?
FORMAT(5I3,F7.2,F6.2,F8.3,F7.2,F10.3,2F7.2,F6.2,I4,f6.1,F6.2)

I am a beginner in Fortran programing and I use RedHat linux to compile it.

thank you


 
Technology news on Phys.org
We will not do your homework for you. You need to show us your work, show us where you're stuck, and ask for specific help.

- Warren
 
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 have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...

Similar threads

Replies
12
Views
3K
Replies
3
Views
3K
Replies
2
Views
2K
Replies
1
Views
2K
Replies
4
Views
8K
Replies
5
Views
2K
Replies
1
Views
2K
Replies
2
Views
25K
Back
Top