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: 103376,a0833bbed8752e1f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news2.telebyte.nl!fu-berlin.de!uni-berlin.de!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: variable length strings Date: Fri, 29 Oct 2004 09:42:53 +0200 Message-ID: <1bdb6uh17pdx6$.t37igzwvqlc9.dlg@40tude.net> References: <1861614.TWv5A9FgVL@linux1.krischik.com> <4178e979_1@baen1673807.greenlnk.net> <1195374.UMjBCk7lO1@linux1.krischik.com> <1154613.ipZcUgduzp@linux1.krischik.com> <1174011.lJ1dcgRM3Q@linux1.krischik.com> <1098814048.280053@master.nyc.kbcfp.com> <10z8k19febkic.16ex86io5uvwi.dlg@40tude.net> <1ok9c1htwcrmd.dta4w50brarb.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de b5kMN+cAOABIV8vFaebGawIfifFmRtPwO458Ag4GCaJo+9L54= User-Agent: 40tude_Dialog/2.0.12.1 Xref: g2news1.google.com comp.lang.ada:5823 Date: 2004-10-29T09:42:53+02:00 List-Id: On 28 Oct 2004 18:07:24 +0200, Pascal Obry wrote: > "Dmitry A. Kazakov" writes: > >>> You missed it ! Please have a look at the Get_Line documentation. >> >> What have I missed? > > That when there is nothing more to read Last is set to 0. How do you know that there *will* be nothing more, when you allocate the buffer? > So I don't see the > problem with Get_Line. You use a small buffer on the stack, and read chunk of > data at a time. Re-read my post. If you *can* do it, then you need no Get_Line. > You are free to write those data where you want in memory or > on disk or ... The issue is: what is the best way to get one physical line in one *contiguous* piece of memory. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de