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!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!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:25:43 +0200 Organization: AdaCL Message-ID: <1861614.TWv5A9FgVL@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 3Z3IXidLsyyAx-n 041022 07:49:28 X-Complaints-To: usenet-abuse@t-online.de X-ID: JOdMu0ZcQeinbLfuMwrQTRQ-oaeuwik-fP8zvpZC9GrJI3pMrm6YoW User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:5621 Date: 2004-10-22T09:25:43+02:00 List-Id: fabio de francesco wrote: > Hi, > > while studying from "Ada as a 2nd Language" I am having some problem > to cope with Strings (Fixed, Unbounded and Bounded) manipulation and > especially with assigning between different types of them and with > overall with input/output. > > 1) Is it possible to use Get_Line with Unbounded and/or Bounded > Strings? Well the Standart overlooked that one. However it is quite easy to write your own - either a recursive solution for String or a loop solution with Unbounded_String. Beware of the examples in Textbooks: Most of them do not handle the last line properly when a final CR/LF is missing. AdaCL has a Get_Line for strings and unbounded strings. And unlike most other implementation it does not have the problem wiht the last line. AdaCL also has text filter classes for easy parsing of text files. see http://www.ada.krischik.com. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com