Re: I/O reading formated files



In article <1153080921.813887.41640@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Julian Bessenroth" <jbusenet@xxxxxx> writes:

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?

READ(2, *, IOSTAT=ios) a,b,c,d

--
Steve
http://troutmask.apl.washington.edu/~kargl/
.



Relevant Pages

  • Re: Using dates during mail merge
    ... The other thing that might be causing problems here is that, regardless of how the DATE field nested in the ASK field is formatted, the user will need to enter the date in the format set up in their regional options (or any other format where the month and day are not ambiguous. ... I was however remiss in not changing the field name from that in my data file as this added some unwelcome confusion:( ... You included 'MyDate' and 'Date2' in your ...
    (microsoft.public.word.mailmerge.fields)
  • Re: DTPicker
    ... On the BestFit issue, for every cell of the column in the Flexgrid, I have ... I could not come up with a generic format to fit no matter ... > Hi Bob, ...
    (microsoft.public.vb.controls)
  • Re: Maybe VLOOKUP?
    ... Valko" wrote: ... Without those "double minus" signs, the formula would return either TRUE ... I need to format my data (for a ... whether or not that date exists in my original dataset or not, ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Maybe VLOOKUP?
    ... The "double minus" coerces the TRUE to 1 and FALSE to 0. ... "A" is the original data (I'm using a smaller data ... I need to format my data (for a statistical ... whether or not that date exists in my original dataset or not, ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Maybe VLOOKUP?
    ... Valko" wrote: ... The "double minus" coerces the TRUE to 1 and FALSE to 0. ... I need to format my data (for a statistical ... whether or not that date exists in my original dataset or not, ...
    (microsoft.public.excel.worksheet.functions)