阅读背景:

如果一个文件不存在,创建一个文件。

来源:互联网 

I want my program to open a file if it exists, or else create the file. I'm trying the following code but I'm getting a debug assertion at freopen.c. Would I be better off using fclose and then fopen immediately afterward?I want my program to open a file if it exists,




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: