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 be deleted.

Remarks

This function will fail if the file do not exist.