Re: unformatted file
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Sat, 11 Oct 2008 17:44:24 -0700
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
.
- Follow-Ups:
- Re: unformatted file
- From: Jim
- Re: unformatted file
- References:
- unformatted file
- From: rudra
- Re: unformatted file
- From: Jim
- unformatted file
- Prev by Date: Re: unformatted file
- Next by Date: Re: Regarding FIles in Fortran
- Previous by thread: Re: unformatted file
- Next by thread: Re: unformatted file
- Index(es):
Relevant Pages
|