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,d655a6c8557d8a35 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-15 05:05:09 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3C6CFA75.4502B4AF@earthlink.net> From: "Marc A. Criley" Organization: Quadrus Corporation X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Storing A string References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 15 Feb 2002 13:05:03 GMT NNTP-Posting-Host: 158.252.122.214 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1013778303 158.252.122.214 (Fri, 15 Feb 2002 05:05:03 PST) NNTP-Posting-Date: Fri, 15 Feb 2002 05:05:03 PST X-Received-Date: Fri, 15 Feb 2002 05:05:03 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:20041 Date: 2002-02-15T13:05:03+00:00 List-Id: Anthony Wise wrote: > > Hi > another newbie question ! > > I need my program to be able to accept lines of text. These lines can be as > long or short as the user likes. > I am using the Get_Line procedure (Using only one string), however this > allows only one entery. So i put Get_Line in a loop, but now the only > accessable input is the last input. Is there anyway i can store all the > inputs so i can process them and then output them all together. > all advice welcomed thx. After reading each string in your loop, you need to store it away somewhere for later reference. Arrays and lists are commonly used for such a purpose. Marc A. Criley Consultant Quadrus Corporation www.quadruscorp.com