comp.lang.ada
 help / color / mirror / Atom feed
From: "Adam Beneschan" <adam@irvine.com>
Subject: Re: End_Of_File but not really
Date: 7 Dec 2006 15:25:37 -0800
Date: 2006-12-07T15:25:37-08:00	[thread overview]
Message-ID: <1165533937.658066.289120@j72g2000cwa.googlegroups.com> (raw)
In-Reply-To: mF_dh.307365$1i1.293847@attbi_s72

Jeffrey R. Carter wrote:
> Adam Beneschan wrote:
> >
> > If I try this on Linux, on a file whose bytes are abc<LF><LF>, 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




  reply	other threads:[~2006-12-07 23:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-07 18:00 End_Of_File but not really Adam Beneschan
2006-12-07 20:17 ` Jeffrey R. Carter
2006-12-07 23:25   ` Adam Beneschan [this message]
2006-12-08  0:29 ` Randy Brukardt
2006-12-08 17:02   ` Adam Beneschan
2006-12-08 23:02     ` Randy Brukardt
2006-12-24  0:54     ` Craig Carey
2006-12-26  7:44       ` Craig Carey <research@ijs.co.nz>
2006-12-10  4:57   ` Steve
2006-12-11 22:49     ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox