// C语言写入文件
#include <stdio.h>
int main() {
FILE *fp;
fp = fopen("/tmp/test.txt", "w+");
fprintf(fp, "This is testing for fprintf.../n");
fputs("This is testing for fputs.../n", fp);
fclose(fp);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265312.html