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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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.133.213 with SMTP id g21mr1913897bkt.3.1332702327339; Sun, 25 Mar 2012 12:05:27 -0700 (PDT) Path: h15ni48523bkw.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: xor Date: Sun, 25 Mar 2012 21:05:25 +0200 Organization: cbb software GmbH Message-ID: References: <9t8mq9Fla4U1@mid.individual.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: Gbl624r6iuNIccy3ASy5ag.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-03-25T21:05:25+02:00 List-Id: 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