Difference between revisions of "FileExists"
(Created page with "===From the Scripting Manual=== ''function FileExists(FileName: string): boolean;'' '''Parameter Info:''' FileName (String): File to be checked '''Description:''' T...") |
(No difference)
|
Latest revision as of 11:00, 15 August 2012
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;