FILE *pfile = NULL; pfile = fopen(filename, "r"); if (pfile == NULL) { return false; } fclose(pfile);
1.标准stdio输入输出,跨平台---》能使用stdio的不要使用writefile 由此可见一斑
stdio判断文件是否存在方法?
原文:https://www.cnblogs.com/hshy/p/12624148.html