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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,49f7dd1bad1910ff X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-15 11:52:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Problems with Ada.Text_IO and strings. Date: Wed, 15 Oct 2003 16:41:34 +0200 Organization: AdaCL Message-ID: <1106548.PnMF1M2W6X@linux1.krischik.com> References: <8336eb21.0310131423.7410e1ec@posting.google.com> 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 1066243837 07 31948 xKExV6zXSnYcaG 031015 18:50:37 X-Complaints-To: usenet-abuse@t-online.de X-ID: bE0g2wZaYeyEIZpFc5a7JKcBw09p1SJ2iPtm2jsaez3wD6AVnWR+gs User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:913 Date: 2003-10-15T16:41:34+02:00 List-Id: CheGueVerra wrote: > It's still not clear for me how to make sure, that when I have a String > let's say: > > S1 : String(1..10); > > How can I make sure that the String that I will receive and treat will be > of length 10 or less.. > > I'm still a little n00b Use Ada.Strings.Unbounded.Unbounded_String. as for reading a line of text see: http://adacl.sourceforge.net/html/______Include__AdaCL-Strings-IO__ads.htm http://adacl.sourceforge.net/html/______Include__AdaCL-Strings-IO__adb.htm With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com