Excluding characters in Fortran

  • Context: Comp Sci 
  • Thread starter Thread starter doublemint
  • Start date Start date
  • Tags Tags
    Fortran
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
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.