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.204.153.5 with SMTP id i5mr2752136bkw.1.1332876820730; Tue, 27 Mar 2012 12:33:40 -0700 (PDT) Path: h15ni56214bkw.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 21:31:21 +0100 Message-ID: References: <9t8mq9Fla4U1@mid.individual.net> Mime-Version: 1.0 X-Trace: individual.net IFCozjxdc1TAD57uXsuNRQAFPkQOBfsduerK6pJyUxNx+1KtMQ X-Orig-Path: kodiak1!mic2 Cancel-Lock: sha1:+txM93z8imjSkWsPJU+2Llsxrz0= X-X-Sender: mic2@kodiak1 In-Reply-To: Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Date: 2012-03-27T21:31:21+01:00 List-Id: On Sun, 25 Mar 2012, Dmitry A. Kazakov wrote: > On Sun, 25 Mar 2012 16:16:00 +0100, Michael Moeller wrote: > >> Can I use Unsigned_Byte_T to read in a byte from a file >> as in C? I haven't looked into this yet. > > That is a very complex question. > > But the short answer is yes. You can read any type from a stream attached > to a file: > > Open (File, ...); -- See RM A.12.1 > ... > Unsigned_Byte_T'Read (Stream (File), Byte); -- See RM 13.13.2 > > -- > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de > Thanks, I'll try this. Regards, Michael