VS2017中使用fopen函数报错:This function or variable may be unsafe。win10下fopen使用需注意的问题总结
先贴代码:#include#includeintmain(){char*info="thisistest";FILE*stream2;if((stream2=fopen("D:\\log.txt","a+"))==NULL)//C4996printf("Thefile'data2'wasnotopened\n");elseprintf("Thefile'data2'wasopened\n");fw