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-Thread: 103376,8d5bda3619cce0f8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!feeder.erje.net!fdn.fr!freenix!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: C getchar() functionality in Ada Date: Wed, 18 Feb 2009 08:46:46 +0100 Organization: Adalog Message-ID: References: <4999ce31$0$90266$14726298@news.sunsite.dk> <3apeng.mtg.ln@hunter.axlog.fr> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1234936233 13415 195.25.228.57 (18 Feb 2009 05:50:33 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 18 Feb 2009 05:50:33 +0000 (UTC) User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: Xref: g2news1.google.com comp.lang.ada:3690 Date: 2009-02-18T08:46:46+01:00 List-Id: Jeffrey R. Carter a �crit : > Except that, given a file that ends with a blank line, > Ada.Text_IO.End_Of_File may return True before the final blank line has > been detected. The general rule is to not use Ada.Text_IO.End_Of_File, > and handle the resulting End_Error. > I agree. Moreover, it behaves better in the case of ill-formed files (from an Ada point of view), such as those that have no terminating LF. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr