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,5a8b3d7ed8d4ae38 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-02 08:23:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!sn-xit-03!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada Subject: Re: Problem with Get_Line Date: Wed, 2 Oct 2002 11:22:20 -0400 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:29465 Date: 2002-10-02T11:22:20-04:00 List-Id: "Frank J. Lhota" wrote in message news:TE2l9.545$CN2.350@nwrddc01.gnilink.net... > > This is not really an Ada issue, mistakes like this are also made in C. > After the "Get(Opc)" call, add a call to the Ada.Text_Io procedure Skip_Line > to discard the characters up to and including the next end-of-line marker. I recommend you don't bother using Get and Skip_Line. Instead, use Get_Line to read all the input, and then use the Get procedures that read from a string buffer. See my article at AdaPower for more info. http://www.adapower.com/lang/get_line.html