首页 > 其他 > 详细

stdio判断文件是否存在方法?

时间:2020-04-03 09:26:17      阅读:64      评论:0      收藏:0      [点我收藏+]
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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!