본문 바로가기
프로그래밍/C, C++

C, C++ 파일 존재 유무 확인

by 꾸션 2016. 11. 21.
bool IsFileExist(char *szFileFullPath)
{
  FILE *file = fopen(szFileFullPath, "r");
  if (file)
  {
    fclose(file);
    return true;
  }
  return false;
}

 

반응형

댓글