ERASEFILE

Synopsis
ERASEFILE filename
ERF filename
Description

Erases (deletes, removes) the file named filename. The file must not be currently be open.

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

OPENREAD "dummy.fil
SETREAD "dummy.fil
SHOW READLIST
[Hello]

SETREAD []
CLOSE "dummy.fil

ERASEFILE "dummy.fil
OPENREAD "dummy.fil
File system error: I can't open that file

SourceForge.net Logo