欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

学习C语言文件读写的基本流程

最编程 2024-08-13 10:21:22
...
#include <stdio.h> int main() { FILE *fp = NULL; fp = fopen("./test.txt", "w+"); fprintf(fp, "This is testing...\n"); fputs("This is testing...\n", fp); fclose(fp); return 0; }