From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_05,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ae9:f81a:: with SMTP id x26mr47499qkh.497.1616000188257; Wed, 17 Mar 2021 09:56:28 -0700 (PDT) X-Received: by 2002:a5b:448:: with SMTP id s8mr5217958ybp.363.1616000188091; Wed, 17 Mar 2021 09:56:28 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.dns-netz.com!news.freedyn.net!newsreader4.netcologne.de!news.netcologne.de!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 17 Mar 2021 09:56:27 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=94.31.102.170; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 94.31.102.170 References: <6aad7864-7b88-4e73-b4fe-f4cd30673b28n@googlegroups.com> <3315a5c5-7a06-4d9d-a808-9fc5b45dab82n@googlegroups.com> <5a31fadb-95e2-4fdb-abd7-855ba9ff0e2cn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <14477d62-77cd-445c-8a39-b8815758238bn@googlegroups.com> Subject: Re: Attempting to create file i task From: AdaMagica Injection-Date: Wed, 17 Mar 2021 16:56:28 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:61594 List-Id: Jeffrey R. Carter schrieb am Mittwoch, 17. M=C3=A4rz 2021 um 16:37:42 UTC+1= : > On 3/17/21 3:47 PM, AdaMagica wrote:=20 > >=20 > > RM A.10.2(2) For the procedures Create and Open: After a file with mode= Out_File or Append_File is opened, the page length and line length are unb= ounded (both have the conventional value zero). After a file (of any mode) = is opened, the current column, current line, and current page numbers are s= et to one. If the mode is Append_File, it is implementation defined whether= a page terminator will separate preexisting text in the file from the new = text to be written.=20 > ARM A.8.2 says that Create "Establishes a new external file". A new file = has no=20 > contents. Uh ah, I overlooked this in the above citation: After a file (of any mode) = is *opened*,=20 But the next sentence for Append does not make it clear whether this applie= s only to Open. It sounds like the old contents are saved for both, Open an= d Create. So very bad wording here. But it makes sense that Create creates a new (hen= ce empty) file. > You might also want to look at this discussions here on c.l.a > https://groups.google.com/g/comp.lang.ada/c/2JYJeBtpm2g/m/H2TAaPlcBgAJ >where Randy Brukardt says that Create with Append_File is defined by the A= RM to >be the same as Out_File. Thanx for the reminder of this discussion. Christoph