fileDeleteFile

Deletes a file from the file system. Takes a filename. Returns 1 on success, 0 on failure (filename is null, file doesn't exist, file is in use, or insufficient permissions).

File IO

Parameters & Returns

Parameters

filename String

Returns

Int

Quick Summary

Deletes a file from the file system. Takes a filename. Returns 1 on success, 0 on failure (filename is null, file doesn't exist, file is in use, or insufficient permissions).

Technical Exegesis...

Deletes the specified file. Returns 1 on success, 0 on failure (filename is null, file doesn't exist, file is in use, or insufficient permissions).

Uses DeleteFileA. The file must not be open or in use by another process. Cannot delete directories - use fileDeleteDir for that.

Example

Example.bam
; No example implemented yet