Advertisement
ASP_Volume3 OLE/ COM/ DCOM/ Active-X #55869

[\File Exist Algorithms/]

This function will check to see if a file exist in the computer if it doesnt it will return -1 else 0.

AI

Shrnutí AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Zdrojový kód
original-source
int Check_File(char *FileName)
{
 ifstream FileL;
  FileL.open(FileName);
  if(!FileL)
  {
   FileL.close();
   return -1;
  }
  else
  {
   FileL.close();
   return 0;
  }
}
Původní komentáře (3)
Obnoveno z Wayback Machine