Path: utzoo!attcan!uunet!know!zaphod.mps.ohio-state.edu!rpi!uupsi!ccavax!merriman From: merriman@ccavax.camb.com Newsgroups: comp.lang.pascal Subject: Re: Turning off the EOF flag in VAX Pascal Message-ID: <32888.27026b33@ccavax.camb.com> Date: 28 Sep 90 01:12:18 GMT References: <24637@adm.BRL.MIL> Organization: Cambridge Computer Associates, Inc. Lines: 19 In article <24637@adm.BRL.MIL>, 20950709%VUVAXCOM.BITNET@pucc.princeton.edu writes: > I have run into an interesting little problem using standard input in > VAX Pascal. The problem involves reading an End-Of-File from standard input > (ie. [Control][Z]) and then trying to read another command from standard input. > I realize that this goes against the definition of the EOF concept, but lots of > users go against many more definitions. Consider the following code segment > (assume all variable-type declarations are appropriate): > > If (Not(EOF)) Then Read (First-Try); > . > . > . > If (Not(EOF)) Then Read (Second-Try); > > The problem that I encounter is that if the user presses [Control][Z] when > trying to read "First-Try", there doesn't appear to be any chance of getting to > read "Second-Try". Is there some way of setting EOF back to FALSE again? How about RESET?