Re: [fpc-pascal]EOF function

2003-09-11 Thread Thomas Schatzl
Hi, > The following (attached) is a programming problem I've implemented. > Now I know the way I've done the EOF test is not correct, otherwise it > would not crash with a runtime error of 106. It doesn't crash here as long as only valid integers are entered. The doc for RTE 106 reads: "Invalid n

Re: [fpc-pascal]EOF function

2003-09-11 Thread James Mills
On Thu, Sep 11, 2003 at 03:01:39PM +0200, Maciej ?aszcz wrote: > On Thu, 11 Sep 2003, James Mills wrote: > > > Hi, > > > > The following (attached) is a programming problem I've implemented. > > Now I know the way I've done the EOF test is not correct, otherwise it > > would not crash with a runti

Re: [fpc-pascal]EOF function

2003-09-11 Thread Maciej Ɓaszcz
On Thu, 11 Sep 2003, James Mills wrote: > Hi, > > The following (attached) is a programming problem I've implemented. > Now I know the way I've done the EOF test is not correct, otherwise it > would not crash with a runtime error of 106. > > Could someone show me the correct way of reading from st