Comp Sci Excluding characters in Fortran

  • Thread starter Thread starter doublemint
  • Start date Start date
  • Tags Tags
    Fortran
AI Thread Summary
The discussion focuses on a Fortran coding issue where the user is trying to exclude the first two lines of data while processing input for energy and F(E) values. The user has successfully read the data but is struggling to eliminate the unwanted lines. Another participant suggests that the issue may stem from printing uninitialized variables, indicating a potential coding error. The conversation emphasizes the importance of properly managing data input and initialization in Fortran. The thread highlights common challenges faced when manipulating data files in programming.
doublemint
Messages
138
Reaction score
0
Hello!

I am trying to write a code in Fortran to process the following data and write it into another file:

# energy (in eV), F(E) (in particles per m^2 per s per ster)

1.81E+17 8.3443E-28
2.26E+17 2.75658E-28
...

So far, I got the code to read everything, however, I can not get rid of the first two lines. Does anyone know how to?

Thanks
DoubleMint
 
Physics news on Phys.org
Show us what you have done. It looks to me like you are printing some garbage values - values of uninitialized variables.
 

Similar threads

Replies
5
Views
2K
Replies
7
Views
2K
Replies
3
Views
4K
Replies
8
Views
3K
Replies
3
Views
3K
Replies
13
Views
3K
Replies
7
Views
5K
Replies
2
Views
9K
Back
Top