Difference between revisions of "FileExists"

From SCAR Divi Manual
Jump to: navigation, search
(Description)
(Description)
 
Line 8: Line 8:
  
 
==Description==
 
==Description==
Returns [[true]] if a file at the path specified by '''FileName''' exists.
+
Returns [[true]] if a file exists at the path specified by '''FileName'''.
  
 
==Example==
 
==Example==

Latest revision as of 13:54, 1 July 2011

Definition

function FileExists(FileName: string): Boolean;

Availability

SCAR Divi 3.25 > Current

Description

Returns true if a file exists at the path specified by FileName.

Example

begin
  if FileExists('scar.exe') then
    WriteLn('scar.exe exists in SCAR''s root folder');
end.

Output:

scar.exe exists in SCAR's root folder

See Also