From: robert.corbett on 9 Jun 2010 03:55
On Jun 9, 12:44 am, robert.corb...(a)oracle.com wrote:
> A good
> thing that, as backspacing is not allowed for stream-access files.
I should have said that backspacing is not allowed for unformatted
From: Richard Maine on 9 Jun 2010 10:49
> Shortly after posting this, I remembered that there is a better way to
> get the same effect, namely to use the STATUS='REPLACE' specifier in
> the OPEN statement.
Yes. I recall status='replace' as one of the new features that nobody
tended to talk about in f90, but was very useful. Prior to that,there
was just no really portable way to achieve the same thing. The
status='delete' trick required you to be able to sucessfully open the
old file, which could fail if you got properties of the file wrong.
(Stream access is much more likely to be able to open an arbitrary file,
but we didn't have that yet then.)
Richard Maine | Good judgment comes from experience;
email: last name at domain . net | experience comes from bad judgment.
domain: summertriangle | -- Mark Twain
From: robert.corbett on 9 Jun 2010 23:43
On Jun 9, 6:07 am, mecej4 <mecej4_no_s...(a)operamail.com> wrote:
> Furthermore, to those who are used to thinking of streams as the most
> basic type of files, using STATUS='REPLACE' is more natural than to use
> a record oriented statement such as ENDFILE on a file opened for STREAM
> -- mecej4
ENDFILE has its uses for stream-access files, namely, if the file is
to be truncated at any point other than the start of the file.