comp.lang.ada
 help / color / mirror / Atom feed
From: cis.ohio-state.edu!pacific.mps.ohio-state.edu!math.ohio-state.edu!howland .reston.ans.net!darwin.sura.net!source.asset.com!shilling@ucbvax.Berkeley.EDU   (Keith Shillington)
Subject: Re: How to reset 'end_error' using text_io?
Date: 27 Aug 93 15:22:53 GMT	[thread overview]
Message-ID: <1993Aug27.152253.11454@source.asset.com> (raw)

(Many educated and honorable persons) write:
>>> So, how can io_exceptions.end_error on standard input be cleared
>>> permitting subsequent GETs to continue reading?
(And many other elided conversations)

The problem being that
  Text_IO.End_Of_File
has become true.  This is equivalent to
  Text_IO.End_Of_File(Current_Input)
                      -- originally defaulted to Text_IO.Standard_Input
So, lets assume that we have an F such that
  F : Text_IO.File_Type;
If we are to
  Text_IO.Open(F,Text_IO.In_Mode,"SYS$INPUT");
  Text_IO.Set_Input(F);
Then the desired result is achieved.  Of course for a more portable
solution, "SYS$INPUT" is replaced by a constant defined in a system
specific package...

--/*No Problem*/--

-- 
  Keith Shillington               /---------\   "No matter where you go,
email: shilling@source.ASSET.com   /=======\     There you are."
voice: (619) 944-5134               /_____\          -- Buckaroo Banzaii
fax  : (619) 944-7089                 | |         office: (301) 924-0050

             reply	other threads:[~1993-08-27 15:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-27 15:22 Keith Shillington [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-08-27 13:03 How to reset 'end_error' using text_io? Dave Collard x7468
1993-08-27 12:50 cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland.
1993-08-27  3:01 dog.ee.lbl.gov!agate!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefs
1993-08-27  2:32 Michael Feldman
1993-08-26 20:42 Dave Colla rd x7468
replies disabled

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