jeudi 5 novembre 2015

How can one count randomly white-spaced delimited values from a file in Fortran?

If one has a file containing, for example:

1 2 3   4    5
6  7  8  9  10
   11    12   13
14 15
16             17
        18
  19  20

How can one get the correct number of integers (in the given example, 20) from counting them in the file in Fortran?

Aucun commentaire:

Enregistrer un commentaire