Advertisement
4_2005-2006 OLE/ COM/ DCOM/ Active-X #161166

[\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

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.

源代码
original-source
int Check_File(char *FileName)
{
 ifstream FileL;
  FileL.open(FileName);
  if(!FileL)
  {
   FileL.close();
   return -1;
  }
  else
  {
   FileL.close();
   return 0;
  }
}
原始评论 (3)
从 Wayback Machine 恢复