Next Topic

Previous Topic

Book Contents

DeleteFile

int DeleteFile(string sFileName)

Return values

Non zero if the function is successful; otherwise 0, and a specific error code can be retrieved by calling global function GetLastError.

Parameters

  • sFileName - Path and name of file to delete.

Remarks

Function deletes a file. Directories cannot be deleted with this function.