KILL

Action

Delete a file from the Disk

 

Syntax

Kill sFileName

 

Remarks

sFileName

A String variable or string expression, which denotes the file to delete

 

This function deletes a file from the disk. A file in use can't be deleted. WildCards in Filename are not supported. Check the DOS-Error in variable gDOSError.

 

 ASM

Calls

_DeleteFile

 

Input

X: Pointer to string with filename

 

Output

r25: Errorcode

C-Flag: Set on Error

 

  

Example

'We can use the KILL statement to delete a file.
'A file mask is not supported
Print "Kill (delete) file demo"
Kill "test.txt"