Deletes a file from disk / storage media.
Syntax
Usage
result = Kill( filename )
Parameters
filename
The filename is the name of the disk file to delete. If the file is not in the current directory, a the path must also be given [path]file.
Return Value
Returns zero (0) on success, or non-zero on error.
Description
Deletes a file from disk / storage media.
Example
Dim filename As String = "file.ext"
Dim result As Integer = Kill( filename )
If result <> 0 Then Print "error trying to kill " ; filename ; " !"
Differences from QB
- KILL can optionally be used as function in FreeBASIC.
See also