Re: unformatted file



Jim <jj.n@xxxxxxxxxx> wrote:

No, you wrote the file with implied do-loops, and you must therefore read it
back with implied do-loops.

The implied DO loops aren't actually the problem. It is perfectly fine
to write with an implied DO loop and read back without, as in

write (..) (x(i),i=1,10)
.....
read (..) y

where y is dimensioned with size 10. Nothing at all wrong with that.

It is the explicit DO loops that are the problem, since they make the
write do multiple records.

Perhaps that's what you meant. Odds seem good of it. But since what you
actually wrote was exactly backwards (implied vs explicit), I thought
I'd better correct it in case someone took it literally.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: unformatted file
    ... back with implied do-loops. ... The implied DO loops aren't actually the problem. ... It is the explicit DO loops that are the problem, ... net | experience comes from bad judgement. ...
    (comp.lang.fortran)
  • Re: Code as documentation
    ... David Flower wrote: ... For DO loops and IF blocks, the language requires at least END DO or END ... but make it more explicit by using construct names so that it is ...
    (comp.lang.fortran)
  • RE: need help
    ... doing Loops within Loops. ... "Jim May" wrote: ... RowCount = RowCount + 1 ... one part number to the next part number there are empty box, the empty row ...
    (microsoft.public.excel.misc)
  • Re: Way, way OT: PC stuff/rant
    ... >>> One taco short of a combination plate ... >>> Belt doesn't go through all of the loops ... >>> Jim ...
    (rec.food.cooking)
  • Re: Do Loop until empty row (column "A")
    ... appears the loops is not executing with the following code. ... Jim ... Dim rng As Range, i As Long ...
    (microsoft.public.excel.programming)