comp.lang.ada
 help / color / mirror / Atom feed
From: cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland.
Subject: Re: How to reset 'end_error' using text_io?
Date: 27 Aug 93 12:50:21 GMT	[thread overview]
Message-ID: <1993Aug27.125021.3540@aplcen.apl.jhu.edu> (raw)

In <25jteg$6e7@neomimsy.cs.umd.edu> alex@cs.umd.edu (Alex Blakemore) writes:
>In article <fmoore.8@dseg.ti.com> fmoore@dseg.ti.com (Freeman L. Moore) writes
:
>> So, how can io_exceptions.end_error on standard input be cleared
>> permitting subsequent GETs to continue reading?

>then I replied
>>text_io.skip_line I believe.

>then Thor set me straight
>> nope.  end_error means end of file -- skip_line just skips to the next line.
> 
>OK, I was remembering using skip_line to solve a similar problem, when data_er
ror
>was raised on syntactically incorrect input using float_io.

>you might even have better luck if you use sys$input or text_io.standard_input
. 8^)

Oh.  Of course.

>another thing to try would be to use
>   text_io.reset (text_io.standard_input)
>instead of closing and reopening the file.


sorry Alex, but nope again.  text_io.standard_input is a function
text_io.reset has one in_out parameter

and text_io.file_type is limited private so you can't play games with
storing text_io.standard_input into a variable and calling reset on 
that variable.

>unfortunately, I don't have access to the great VAX compiler to test this out.

poor Alex.  whatcha up to these days?

--Thor
dlc@ddsdx2.jhuapl.edu

             reply	other threads:[~1993-08-27 12:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-27 12:50 cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland. [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-08-27 15:22 How to reset 'end_error' using text_io? Keith Shillington
1993-08-27 13:03 Dave Collard x7468
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