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,272f3f8ed3fdea2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-31 17:30:59 PST Path: supernews.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Jeff Creem" Newsgroups: comp.lang.ada Subject: Re: get_line and skip_line in package text_io Date: Wed, 31 Jan 2001 20:33:24 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <959tlt$mtm$1@slb6.atl.mindspring.net> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Complaints-To: newsabuse@supernews.com Xref: supernews.google.com comp.lang.ada:4794 Date: 2001-01-31T20:33:24-05:00 List-Id: Never use (ok almost never) skip_line after a get_line. Use skip_line after reading Integers, floats, enums using their respective IO packages if you want to ignore the rest of the contents on the line. The only time a skip_line after a get_line makes sense is when you really want to throw away the contents of a second line or when Last returns = Item'last (indicating that not all of the text on the line was consumed) and you want to ignore for some reason the rest of the line. "arcele" wrote in message news:959tlt$mtm$1@slb6.atl.mindspring.net... > I'm slightly confused about the purpose of the text_io.skip_line function. > Some times with a get_line command in my program even after the user hits > enter the program does not continue, i'm sure this is because i am not using > skip_line correctly, but what exactly does the skip_line function do? and > when should i use it? thanks in advance for any help. ryan > >