I/O reading formated files
- From: "Julian Bessenroth" <jbusenet@xxxxxx>
- Date: 16 Jul 2006 13:15:21 -0700
Hi,
I've got a problem reading a data file. The file contains four numbers
in exponetial form par line (as illustrated below)
2.443526e-01 2.166543e-02 4.173232e-01 1.733755e+05
....
I read those lines with:
READ( 2, FMT='(E12.6, 3E13.6)',IOSTAT=ios) a,b,c,d
That's not that difficult, but if one of these numbers appears to be
negative the leading minus sign does not fit with my format
e.g.
2.443526e-01 2.166543e-02 4.173232e-01 1.733755e+05
....
2.467348e-01 -6.730524e-04 4.012660e-01 2.702110e+05
....
2.460509e-01 1.539250e-04 4.087237e-01 1.461959e+05
How do I manage to read all the lines of my data file?
TIA
Julian
.
- Follow-Ups:
- Re: I/O reading formated files
- From: robert . corbett
- Re: I/O reading formated files
- From: Steven G. Kargl
- Re: I/O reading formated files
- From: Tim Prince
- Re: I/O reading formated files
- Prev by Date: Re: Algorithm for distance from point to function
- Next by Date: Re: I/O reading formated files
- Previous by thread: Portable isfinite for gfortran 4.0.3 and ifort 8.1/9.0
- Next by thread: Re: I/O reading formated files
- Index(es):
Relevant Pages
|
|