首页 > 技术文章 > linux c/c++ 文件是否存在
smallredness 2019-01-12 12:00 原文
#include <unistd.h> int FileExist(const char* fname) { return access(fname,0); }