DeleteFile
Previous  Top  Next


Prototype

DeleteFile(FileName)

Description

It deletes the file passed as parameter.

Parameters

FileName
: string corresponding to the path and name of the file to be deleted.

Returned value

None.

Notes

None.

Example

// It joins to the variable an image file
File:='c:\images\1.tif';

// It checks if file really exists
Esistente:=FileExists(File);

// If file exists then it is deleted
If Esistente=True Then DeleteFile(File);

// It executes other operations