Advertisement
7_2009-2012 OLE/ COM/ DCOM/ Active-X #228720

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