Re: I/O reading formated files




"Julian Bessenroth" <jbusenet@xxxxxx> wrote in message
news:1153115437.997103.188900@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

robert.corbett@xxxxxxx schrieb:

How do I manage to read all the lines of my data file?

Which Fortran implementation are you using? Do you need
a portable solution, or would an implementation-specific
solution suffice?

Hi Robert,

first of all I'm forced to work with F77 (shame on me for not giving
any information at all;-)) and I need to operate on unix as well as on
windows(XP). A "quick 'n' dirty" approach will be sufficient because it
will be an intermediate solution anyway.

The file was written by a fe-program, but not written in F.

TIA

Julian

A way to get around your problem is to read the entire line into a string.
You can then parse the string into pieces by searching for a blank. You
then use internal I/O to move from the partial strings into a series of
variables. This method isn't greatly different from the way Fortran goes
through a list directed I/O.
Jim


.



Relevant Pages

  • Re: I/O reading formated files
    ... robert.corbett@xxxxxxx schrieb: ... Which Fortran implementation are you using? ... a portable solution, or would an implementation-specific ...
    (comp.lang.fortran)
  • Re: I/O reading formated files
    ... Which Fortran implementation are you using? ... a portable solution, or would an implementation-specific ... Bob Corbett ...
    (comp.lang.fortran)