Programming/misc [c code] 檢查某檔案是否存在 – check file exists using C 2009/02/07 Monster FILE* fp = fopen(path, "r"); if (fp) { // file exists fclose(fp); } else { // file doesn't exist }