Prototype
BoolExists:=DirExists(FileName)
Description
It checks if there is the directory passed as parameter.
Parameters
FileName: string corresponding to the directory.
Returned value
BoolExists: true or false logical value. If it returns true, directory exists, on the contrary, either it doesn't exist or it is not found.
Notes
None.
Example
// It checks if there is really a directory
Esistente:=DirExists ('c:\files');
// It creates a directory if it doesn't exist
If Esistente<>True then CreateDir('c:\files');
// It checks if there is a file within the directory
Esistente:=FileExists ('c:\files\unfile');
// It creates a file if it doesn't exist
If Esistente=False Then CreateFile('c:\files\unfile');
//It executes other operations