Skip to content

Monster Oasis

  • 浪況預測
  • KML2CSV
  • World Marathon

[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
Post navigation
用 mysql-proxy 實踐 讀/寫 分離
N.Furtado Say It Right (Remix)

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Blogroll

  • 02 浪況預測
  • Email
  • G Suite admin console
  • gandi
  • Google AdSense
  • Google Analytics
  • webHD
  • ★Amazon AWS console

Search

© 2021 Monster Oasis • Built with GeneratePress