From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:ac8:2b86:: with SMTP id m6mr10448631qtm.190.1574890838670; Wed, 27 Nov 2019 13:40:38 -0800 (PST) X-Received: by 2002:a05:6830:150b:: with SMTP id k11mr5137459otp.178.1574890838311; Wed, 27 Nov 2019 13:40:38 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!weretis.net!feeder7.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!g89no5361133qtd.0!news-out.google.com!g53ni1511qtg.0!nntp.google.com!g89no5361126qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 27 Nov 2019 13:40:38 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.211.250.207; posting-account=OpPeVwoAAAAlPrWv1fb47XDcVfI4SzqM NNTP-Posting-Host: 85.211.250.207 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <49e9c411-f09f-4ec9-82fb-4343b682f06c@googlegroups.com> Subject: Re: Create and Append_File From: Simon Wright Injection-Date: Wed, 27 Nov 2019 21:40:38 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:57613 Date: 2019-11-27T13:40:38-08:00 List-Id: On Friday, 7 June 2019 09:01:15 UTC+1, Simon Wright wrote: > "Randy Brukardt" writes: >=20 > > As you note, Create (In_File) is already nonsense, so Create > > (Append_File) might as well be nonsense as well (it's *less* nonsense > > in any case, since a modeless Reset preserves the mode, and the file > > wouldn't necessarily be empty at that point). >=20 > I guess I should add this to my StackOverflow answer which may have been > the trigger for this question. I have No Idea why I thought it sensible > to Create the file in Append_File mode. >=20 > https://stackoverflow.com/a/56404909/40851 I see that I did update that answer, with >At first glance, you might wonder what the point of opening a file that mu= st have been empty in append mode is. Normally, of course, it might as well= have been opened in standard out mode; the only difference would be if for= some reason you had to use the modeless [`Reset`](http://www.ada-auth.org/= standards/rm12_w_tc1/html/RM-A-10-1.html#p11). In that case, if the file wa= s created in append mode it would remain in append mode, so any previous up= dates wouldn=E2=80=99t be lost.