Tester l’existence d’un fichier
Posté le 8 mars, 2009 dans C/C++ | Aucun Commentaire »
En C, une manière de tester rapidement l’existence d’un fichier ou d’un dossier
bool FileExists(const TCHAR* pcFilePath)
{
return (_taccess(pcFilePath, 00) == 0);
}