摘要: // 从stdin获取字符串,输出到文件中 #include <stdio.h> #include <string.h> int main(int argc, char *argv[]) { FILE *file = fopen("test.txt", "w"); if (NULL == file) 阅读全文
posted @ 2023-05-09 15:59 jason8826 阅读(33) 评论(0) 推荐(0) 编辑
摘要: // 文件拷贝 #include <stdio.h> int main(int argc, char *argv[]) { FILE *file_A = fopen("A.txt", "r"); if (NULL == file_A) { printf("fopen file_A error\n") 阅读全文
posted @ 2023-05-09 00:57 jason8826 阅读(22) 评论(0) 推荐(0) 编辑