EOFP

Synopsis
EOFP
EOF?
Description

Outputs TRUE if there are no more characters to be read in the read stream file, FALSE otherwise.

Example
OPENWRITE "dummy.fil
SETWRITE "dummy.fil
PRINT "Hello
PRINT [Good Bye]
SETWRITE []
CLOSE "dummy.fil

OPENREAD "dummy.fil
SETREAD "dummy.fil
REPEAT 2 [SHOW READLIST SHOW EOFP]
[Hello]
false
[Good Bye]
true
SETREAD []
CLOSE "dummy.fil

SourceForge.net Logo