用fopen在mac os x下为什么没有效果?解决办法
用fopen在mac os x下为什么没有效果?
FILE *outfile;
outfile=fopen("adsf.txt", "w");
fprintf(outfile, "adsfasdf");
fclose(outfile);
也没报错,就是找不到asdf.txt这个文件。
------解决方案--------------------
------解决方案--------------------
可以找到的
FILE *outfile;
outfile=fopen("adsf.txt", "w");
fprintf(outfile, "adsfasdf");
fclose(outfile);
也没报错,就是找不到asdf.txt这个文件。
------解决方案--------------------
------解决方案--------------------
可以找到的