FileExists
Renvoie True si le fichier spécifié par fileName existe.
Syntaxe
function FileExists(name: String): Boolean
name: chemin d'accès à un fichier
Remarques
Renvoie True si le fichier spécifié par name existe et est accessible, False sinon.
Exemples
var fileName := 'C:\TEST\test.csv';
if FileExists(fileName) then
PrintLn('the file exists :)')
else PrintLn('the file does not exist :(');
if FileExists(fileName) then
PrintLn('the file exists :)')
else PrintLn('the file does not exist :(');