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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Will Ada-95 Programs Written in MS Windows Run in MacOS and Linux Without Some Tweaking. Date: Wed, 11 Dec 2013 17:07:31 +0000 Organization: A noiseless patient Spider Message-ID: References: <1d445f04-b670-444f-9858-55da271fe17a@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="aa5206ded37b2ca7f9833bd0a598d69e"; logging-data="32432"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FuWsRRNnJNf2ibaDqyGMjsbbiS+FEMlw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:YQLlGNavXB4rLVSZNWKXKKORglU= sha1:bggbRZ0QpPX/EZl8Et4gP5ECgp8= Xref: news.eternal-september.org comp.lang.ada:17969 Date: 2013-12-11T17:07:31+00:00 List-Id: Simon Wright writes: > Jeffrey Carter writes: > >> $ ./s >> testing \n >> >> raised ADA.IO_EXCEPTIONS.NAME_ERROR : s.dat: No such file or directory >> >> and indeed s.dat does not exist. > > Drat. > > I forgot to add that you need to do (the equivalent of) "touch s.dat" > before running the program (I thought it was quite long enough already > without adding the Create/Open dance). And now I look in the Ada95 AARM there's nothing that says what happens if the external file to be Create'd already exists. I must have been thinking of the Open/Create dance, or even Open-To-Append/Create.