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,68cd50941308f5a9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!j72g2000cwa.googlegroups.com!not-for-mail From: "Adam Beneschan" Newsgroups: comp.lang.ada Subject: Re: End_Of_File but not really Date: 7 Dec 2006 15:25:37 -0800 Organization: http://groups.google.com Message-ID: <1165533937.658066.289120@j72g2000cwa.googlegroups.com> References: <1165514423.562024.70510@j72g2000cwa.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1165533942 8975 127.0.0.1 (7 Dec 2006 23:25:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 7 Dec 2006 23:25:42 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: j72g2000cwa.googlegroups.com; posting-host=66.126.103.122; posting-account=cw1zeQwAAABOY2vF_g6V_9cdsyY_wV9w Xref: g2news2.google.com comp.lang.ada:7859 Date: 2006-12-07T15:25:37-08:00 List-Id: Jeffrey R. Carter wrote: > Adam Beneschan wrote: > > > > If I try this on Linux, on a file whose bytes are abc, then the > > message "End_Of_File returned TRUE but Get_Line did not raise an > > exception". This strikes me as bizarre---if End_Of_File returns True, > > then a subsequent read operation should raise an End_Error, but that > > isn't what's happening. > So the > situation you describe is true even for a file written by Text_IO: > End_Of_File returns True and Get_Line reads an empty string. Yes, and for what it's worth, I just tested it, using Text_IO to create and then reopen the file, and I'm still getting that message. -- Adam