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,8d3f28f2a74233d2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-30 06:14:29 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!cyclone-west.rr.com!news.rr.com!news-west.rr.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!news.mindspring.net!not-for-mail From: Marin David Condic Newsgroups: comp.lang.ada Subject: Re: Newbie Questions about Get, Get_Line Date: Sat, 30 Dec 2000 09:13:22 -0500 Organization: Quadrus Corporation Message-ID: <3A4DED82.C23CDB77@acm.org> References: NNTP-Posting-Host: d1.56.bf.2a Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 30 Dec 2000 14:13:44 GMT X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:3464 Date: 2000-12-30T14:13:44+00:00 List-Id: When do you know that the user input is done? Is it when the user hits the Enter key terminating the line? If so, it should be pretty straightforward to use Text_IO.Get_Line. That should discard anything longer than your string buffer. If the input is shorter than your string, the Last parameter to Get_Line tells you the last character input. Just fill the rest of the string with spaces. MDC gressett@iglobal.net wrote: > If the user input is shorter that the string variable, it will be > padded with blanks. > > If the user input is longer than the string variable, the extra > characters should be thrown away, never to be seen again. -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Giving money and power to Government is like giving whiskey and car keys to teenage boys." -- P. J. O'Rourke ======================================================================