From Clomosy Docs
No edit summary |
No edit summary |
||
| Line 12: | Line 12: | ||
<b>Example</b><br> | <b>Example</b><br> | ||
<pre> | <pre> | ||
{ | { | ||
| Line 24: | Line 24: | ||
} | } | ||
} | } | ||
</pre> | </pre> | ||
Revision as of 10:43, 13 November 2024
function clFileExists(const FileName: string; CombinePathString:String): Boolean;
It is a function that is part of the Clomosy platform and checks for the existence of a specified file. If the specified file exists, it returns True; if it does not exist, it returns False.
The function takes two parameters: the first parameter is the name of the file being searched for, and the second parameter is the file path written as a string.
The general usage is as follows:
clFileExists('file.txt','D:\Clomosy'); //clFileExists('ball.png', Clomosy.AppFilesPath)
Example
{
if (clFileExists('file.txt',Clomosy.AppFilesPath))
{
clShowMessage('file exists');
}
Else
{
clShowMessage('no file');
}
}