CLOSE

Synopsis
CLOSE filename
Description

Command that closes the named file. All subsequent attempts to read or write to the file will fail.

You can also close the reserved file "clipboard with this command.

If you close the current READER or WRITER, then the reader or writer is reset to the Commander.

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]
[Hello]
[Good Bye]
SETREAD []
CLOSE "dummy.fil

SourceForge.net Logo