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: a07f3367d7,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!newsfeed.straub-nv.de!eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: for S'Image use Func?? Date: Mon, 10 May 2010 23:30:28 +0200 Organization: A noiseless patient Spider Message-ID: <87632vwikr.fsf@ludovic-brenta.org> References: <4be417b4$0$6992$9b4e6d93@newsspool4.arcor-online.net> <1qcb6z4i20dyb.1dz2hd4c0vx69.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Mon, 10 May 2010 21:30:28 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="aWhQTHgfdnD2YXcebEBGuQ"; logging-data="18845"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18JEdLcZ/BUvXEFD1lopWdt" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:XAczeUAerQ7G3PdIV7su95fa3Bc= sha1:jMoUTqtP73oqhHdxXUrSQKcYLBc= Xref: g2news2.google.com comp.lang.ada:11474 Date: 2010-05-10T23:30:28+02:00 List-Id: Maciej Sobczak writes: > Coming back to I/O - what I miss in Ada is the equivalent of fread in > C - that is, an operation that reads *up to* the given number of > bytes. Or maybe there is something that I didn't notice? Such an > operation is an important basis for custom buffered input. Without it > the only way to reinvent a proper I/O is via direct bindings to > system- level API. Ada.Streams.Read (ARM 13.13.1(5)) does just that. So does Ada.Text_IO.Get_Line (ARM A.10.1(49)). -- Ludovic Brenta.