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 sd6mr14469962pbc.8.1332952270735; Wed, 28 Mar 2012 09:31:10 -0700 (PDT) Path: z9ni11862pbe.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: Wed, 28 Mar 2012 18:28:55 +0100 Message-ID: References: <9t8mq9Fla4U1@mid.individual.net> <9t99r9F6e2U1@mid.individual.net> <4f72393e$0$6643$9b4e6d93@newsspool2.arcor-online.net> <4f7308a9$0$7625$9b4e6d93@newsspool1.arcor-online.net> <9tgqomFflrU1@mid.individual.net> Mime-Version: 1.0 X-Trace: individual.net YU1K5M1HwyN1t4pBNfitTws/WMNpLMQRNYJ2PZeLwJLvFjvKyR X-Orig-Path: kodiak1!mic2 Cancel-Lock: sha1:auWN98vBQ78+BvDnOmyX8ElWwAM= X-X-Sender: mic2@kodiak1 In-Reply-To: <9tgqomFflrU1@mid.individual.net> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Date: 2012-03-28T18:28:55+01:00 List-Id: On Wed, 28 Mar 2012, Niklas Holsti wrote: > But, from the solution that Georg gave you, it seems that your difficulty was > not about I/O in Ada, but about the Ada package concept, context clauses > ("with"), and perhaps generics, none of which are specifically related to > I/O, and all of which you need to know anyway, in order to be productive in > Ada. That's right. I had to start somewhere but quickly got stuck. First I didn't find anything on byte-level I/O in my documentation, then there was this problem with visibility. > > Two ways: > > - Ada.Directories.Size, given the file name. > - Ada.Direct_IO.Size, given an open (Direct_IO) file. > Thanks. Regards, Michael