Re: T edit descriptor and ADVANCE="NO"
- From: Richard E Maine <nospam@xxxxxxxxxxxxx>
- Date: Fri, 29 Jul 2005 12:31:20 -0700
In article <1122664387.478362.185090@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Joost" <jv244@xxxxxxxxx> wrote:
> one follow-up question, should :
>
> write(10,*)
> END
>
> generate a file that begins with a blank (and thus is of size 2 after
> adding the assumed line termination) ? Or is there, somehow, no output
> record ?
I'd claim it should generate a record with a blank. It is advancing I/O.
Advancing I/O terminates a record (even if the record is empty). See,
for example, the last sentence of 9.2.3.3 of F2003, which says "In all
other cases, the file is positioned after the record just read or
written and that record becomes the preceding record." The exceptions
mentioned before the "all other cases" involve things like error
conditions, stream, and advance='no'. Zero record length is not an
exception. Yes, a formatted record may have zero length (9.1.1).
But all that stuff is about justifying that a record is indeed written.
I don't think that list-directed can write a record of zero length
(though you can do so with an explicit format).
I don't see any exceptions for zero-length mentioned in the bit about
list-directed starting records with a blank.
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain | experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
.
- References:
- T edit descriptor and ADVANCE="NO"
- From: Joost
- Re: T edit descriptor and ADVANCE="NO"
- From: Steve Lionel
- Re: T edit descriptor and ADVANCE="NO"
- From: Joost
- Re: T edit descriptor and ADVANCE="NO"
- From: Steve Lionel
- Re: T edit descriptor and ADVANCE="NO"
- From: Joost
- T edit descriptor and ADVANCE="NO"
- Prev by Date: Re: T edit descriptor and ADVANCE="NO"
- Next by Date: Re: T edit descriptor and ADVANCE="NO"
- Previous by thread: Re: T edit descriptor and ADVANCE="NO"
- Next by thread: Re: T edit descriptor and ADVANCE="NO"
- Index(es):
Relevant Pages
|