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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8f01d35116e753b6 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.125.233 with SMTP id mt9mr24111462pbb.5.1332882883596; Tue, 27 Mar 2012 14:14:43 -0700 (PDT) Path: z9ni8846pbe.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: xor Date: Tue, 27 Mar 2012 22:14:43 +0100 Organization: A noiseless patient Spider Message-ID: References: <9t8mq9Fla4U1@mid.individual.net> <9t99r9F6e2U1@mid.individual.net> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="25644"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+neQwhYyVdXbbMowa1TwONsOYq6EqtOiw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:DtnGDgOeUpQKYtz+goYX9n63JGo= sha1:rkNm1xKowxt74fg5F0w0T5g7sys= Content-Type: text/plain; charset=us-ascii Date: 2012-03-27T22:14:43+01:00 List-Id: Michael Moeller writes: > In addition there is no EOF, which brings me to the next question: > > How can I prevent Ada from attaching '0x0a' to the end of the file? The run-time will raise End_Error if you try to read beyond the physical end of the file (the last byte). If you use anything other than Text_IO, then the only bytes that are written are bytes that you specify directly; when you stop writing and Close the file, that's it.