Skip to content

Monster Oasis

  • 浪況預測
  • KML2CSV
  • World Marathon
  • Privacy Policy

[c code] 檢查某檔案是否存在 – check file exists using C

2020/07/022009/02/07 by Monster

♥ ♥ ♥ 如果這頁訊息對您有幫助 請幫我點上方廣告↑ ↑ ↑ 感謝您的幫助 ♥ ♥ ♥

FILE* fp = fopen(path, "r");
if (fp) {
    // file exists
    fclose(fp);
} else {
    // file doesn't exist
}
Categories Programming/misc Tags copypaste, helloworld
用 mysql-proxy 實踐 讀/寫 分離
[ref] vi / vim 的 HOTKEY / 操作
© 2025 Monster Oasis • Built with GeneratePress