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 "example.txt
SETWRITE "example.txt
PRINT "Hello
PRINT [Good Bye]
SETWRITE []
CLOSE "example.txt

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

SourceForge.net Logo