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);
}