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 stdin until there > is no more input ?
Have you tried to change the read to readln? IMO you are reading EOLN to the integer. -- --[ [EMAIL PROTECTED] ]--[ GG 1333 (thanks to gophi :*) ]-- --[ Nie chcę mieć słodkiej sygnaturki, ale i tak mam ]-- _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal