橘子味的心
标题:计算机编程 写文件

计算机编程 写文件

#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);

}

目录

分类