[fpc-pascal]EOF function

Maciej Łaszcz tree at apcoh.org
Thu Sep 11 15:01:39 CEST 2003

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.

--[ tree at apcoh.org ]--[ GG 1333 (thanks to gophi :*) ]--
--[ Nie chcę mieć słodkiej sygnaturki, ale i tak mam ]--

More information about the fpc-pascal mailing list