NAME
-
kill - delete a file
SYNOPSIS
-
kill
FileSpec
DESCRIPTION
-
Kill
deletes the specified file by unlinking the directory entry for
the file in the UNIX file system.
If the entry was the last link to the file, the file is lost forever.
Kill
has the same effect as the
rm
shell command in UNIX.
FileSpec may be any string expression.
EXAMPLE
-
The program
kill "program"
v$ = "my" + "file"
kill v$
deletes the files "program" and "myfile".
DIAGNOSTICS
-
If a
kill
statement is given for a file that does not exist,
a "File not found" error occurs.
USAGE NOTES
-
Kill
does not produce an error if the file to be deleted is open; the
file is deleted when it is closed.
from
The Basmark QuickBASIC Programmer’s Manual
by
Lawrence Leinweber