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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47b871fef9bb1459 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-26 20:05:41 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: string input Date: 26 Nov 2001 20:05:40 -0800 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0111262005.74c646cc@posting.google.com> References: NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1006833940 5887 127.0.0.1 (27 Nov 2001 04:05:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 27 Nov 2001 04:05:40 GMT Xref: archiver1.google.com comp.lang.ada:17021 Date: 2001-11-27T04:05:40+00:00 List-Id: kotee@ludens.elte.hu wrote in message news:... > helo > > what can i do if i wanna read user input to a string with > length short (i wanna do it in loop), and user write a > very long string. if it happens the next and the next... > input is filled with that trash of first input... > pls hlp > > kotee Note that if you are using GNAT, the function Ada.Strings.Unbounded.Get_Line is very convenient for reading strings of varying length.