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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e89e4fc8b5c5f198 X-Google-Attributes: gid103376,public From: Dale Stanbrough Subject: Re: get_line Date: 1998/06/07 Message-ID: <6lcql0$8qj$1@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 360265125 Content-Transfer-Encoding: 8bit References: X-XXMessage-ID: Mime-Version: 1.0 Distribution: world Content-Type: text/plain; charset=ISO-8859-1 Organization: RMIT Newsgroups: comp.lang.ada Date: 1998-06-07T00:00:00+00:00 List-Id: Matthew Heaney writes: "If there are the same number of characters in the input line as the input buffer, Get_Line will NOT do an end-of-line automatically. The next Get_Line will in fact return 0 as the value of last. (It's the 2nd call the Get_Line that consumes the end-of-line.) The test to make sure all of the text on the line has been consumed is Last < Input_Buffer'Last which means "you have read all the text on the current line." To use this predicate, you'll have to make your buffer size 1 more than the advertised maximum." Yes you are correct. I didn't write exactly what i should have, I can now see! What i should have said is "if you do read in exactly the number of characters as are in the buffer, then you really don't know what situation you are in - you can still never tell if a skip_line was called". Dale