Re: I/O reading formated files
- From: "Jim" <j.n@xxxxxxxxxx>
- Date: Mon, 17 Jul 2006 20:59:46 GMT
"Julian Bessenroth" <jbusenet@xxxxxx> wrote in message
news:1153115437.997103.188900@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
A way to get around your problem is to read the entire line into a string.
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
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
.
- References:
- I/O reading formated files
- From: Julian Bessenroth
- Re: I/O reading formated files
- From: robert . corbett
- Re: I/O reading formated files
- From: Julian Bessenroth
- I/O reading formated files
- Prev by Date: Re: writing output listing onto screen (or not) and onto file
- Next by Date: Re: Maximal free space on the plot
- Previous by thread: Re: I/O reading formated files
- Next by thread: Maximal free space on the plot
- Index(es):
Relevant Pages
|