From Clomosy Docs

Revision as of 10:25, 15 August 2024 by ClomosyManager (talk | contribs)

clFileExists is part of the Clomosy library and is a function that checks for the existence of the specified file. Returns True if the specified file exists, False otherwise.

The general usage is as follows:

clFileExists(FileNameString:WideString; CombinePathString:String);

FileNameString : Searched file name.

CombinePathString : Path to the searched file.

Example:

Base Syntax
Begin
 If clFileExists('file.txt',Clomosy.AppFilesPath) Then 
   clShowMessage('file exists') 
 Else 
   clShowMessage('no file');
End;
TRObject Syntax
  if (clFileExists('file.txt',Clomosy.AppFilesPath))
 {
  clShowMessage('file exists'); 
 }
 Else 
 {
  clShowMessage('no file');
 }

See Also