Prototype
BoolExists:=FileExists(FileName)
Description
It checks if the file passed as parameter really exists.
Parameters
FileName: string corresponding to the path and name del file.
Returned value
BoolExists: true or false logical value. If it returns true then file exists, otherwise it has not been found or it doesn't exists.
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