摘要:
创建一个文件使用fopen打开,然后使用fprintf输出,最后关闭文件流FILE *out;out = fopen("test.txt","a+");if(out == NULL){ exit(EXIT_FAILURE);}printf("hello~\n");int i;for(i=0;i<10;i++){ fprintf(out,"heelo %d\n",i);}fclose(out); 阅读全文
posted @ 2014-03-26 19:24
xingoo
阅读(949)
评论(0)
推荐(0)

浙公网安备 33010602011771号