FileExists

From Soldat Community Wiki
(Redirected from FileExist)
Jump to: navigation, search

From the Scripting Manual

function FileExists(FileName: string): boolean;

Parameter Info:
 FileName (String): File to be checked

Description:
 This function will return TRUE or FALSE depending if a file(FileName) exists.

Examples

begin
    if (FileExists('mysettings.ini')) then begin
       //Any code here will only get execute if the file exists!
       // You might want to use this function before using ReadINI or ReadFile.
    end;
end;


External Links