• Support PF! Buy your school textbooks, materials and every day products Here!

Excluding characters in Fortran

  • Comp Sci
  • Thread starter doublemint
  • Start date
  • #1
141
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
 

Answers and Replies

  • #2
33,514
5,195
Show us what you have done. It looks to me like you are printing some garbage values - values of uninitialized variables.
 

Related Threads on Excluding characters in Fortran

Replies
12
Views
886
Replies
7
Views
3K
Replies
0
Views
1K
  • Last Post
Replies
10
Views
2K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
5
Views
3K
Replies
4
Views
2K
Replies
2
Views
9K
Replies
5
Views
986
  • Last Post
Replies
9
Views
7K
Top