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=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.227.230 with SMTP id sd6mr11815336pbc.8.1332885501314; Tue, 27 Mar 2012 14:58:21 -0700 (PDT) Path: z9ni8960pbe.0!nntp.google.com!news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Michael Moeller Newsgroups: comp.lang.ada Subject: Re: xor Date: Tue, 27 Mar 2012 23:56:06 +0100 Message-ID: References: <9t8mq9Fla4U1@mid.individual.net> <9t99r9F6e2U1@mid.individual.net> Mime-Version: 1.0 X-Trace: individual.net ZGXX8VuDw/t7Iqiv4WJ9FA7AkHCHzDquUzqiLuzgWQyt+7Pan1 X-Orig-Path: kodiak1!mic2 Cancel-Lock: sha1:MvUdUqZo8IHy1KsFgy49Gioj7fs= X-X-Sender: mic2@kodiak1 In-Reply-To: Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Date: 2012-03-27T23:56:06+01:00 List-Id: On Tue, 27 Mar 2012, Simon Wright wrote: > 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. > Thanks. I checked out Stream, Sequential and Direct but gnat refuses to even know them. Certainly I do something wrong. Regards, Michael