From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 27 Aug 93 12:50:21 GMT From: cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!howland. reston.ans.net!spool.mu.edu!caen!saimiri.primate.wisc.edu!aplcen.apl.jhu.edu!dd sdx2.jhuapl.edu!dlc@ucbvax.Berkeley. (Dave Collard x7468) Subject: Re: How to reset 'end_error' using text_io? Message-ID: <1993Aug27.125021.3540@aplcen.apl.jhu.edu> List-Id: In <25jteg$6e7@neomimsy.cs.umd.edu> alex@cs.umd.edu (Alex Blakemore) writes: >In article 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