Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!think.com!hsdndev!husc6!endor!siegel From: siegel@endor.uucp (Rich Siegel) Newsgroups: comp.sys.mac.programmer Subject: Re: Readln in THINK Pascal, a bug? Message-ID: <5710@husc6.harvard.edu> Date: 13 Feb 91 01:56:33 GMT References: <1991Feb12.100618.4840@cc.helsinki.fi> Sender: news@husc6.harvard.edu Reply-To: siegel@endor.UUCP (Rich Siegel) Organization: Symantec Language Products Group Lines: 20 In article <1991Feb12.100618.4840@cc.helsinki.fi> lehvaslaiho@cc.helsinki.fi writes: >Could someone please explain me what should I do to read from keyboard >more than one value with more than one readln procedures. I am trying >to write standard Pascal with THINK Pascal 3.01 and every time my program >encounters the second readln() it reports an error: Unexpected end of file. >With the help of manual I have put an writeln(eof) statements in the program >and found that it really thinks it has read to the end of the file coming >from the keyboard. I can not reset my keyboard "file", can I?! An other If you type the Enter key while entering your input, EOF will become true for "input", which is represented by the keyboard. You can reset input, but it should not be necessary to do so. R. Rich Siegel Symantec Languages Group Internet: siegel@endor.harvard.edu "I was just trying to be subtle. That's my job, isn't it?"