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,a0833bbed8752e1f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: variable lenght strings Date: Fri, 22 Oct 2004 09:29:05 +0200 Organization: AdaCL Message-ID: <1209757.RtbsXkycWi@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1098431368 03 22568 8Z3IXidLbyLJS8Cb 041022 07:49:28 X-Complaints-To: usenet-abuse@t-online.de X-ID: VaVqv+Z6weG-UnykbIvebSFPEZSzbN7PwrM3dTgBfNbdO1hRItBb4w User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:5620 Date: 2004-10-22T09:29:05+02:00 List-Id: Marius Amado Alves wrote: >> 1) Is it possible to use Get_Line with Unbounded and/or Bounded >> Strings? > > Not in the standard, but subprograms like those are usually around, e.g. > in the GNAT Library, or end up being written in house. > >> 2) If not, how should usei input be managed when lines length isn't >> known a priori? > > There's a way using the standard Get_Line, explained in AdaPower. Which is buggy- It will fail if the length of the last line is a multiple of buffer length! I once send a correction but is was ignored. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com