摘要: #include<stdio.h>#include<stdlib.h> int main(){ FILE *fin;//文件指针 char ch; if((fin=fopen("c:\\mmmmm\\test.txt","r"))==NULL) { printf("read file error!\ 阅读全文
posted @ 2022-05-12 11:44 CC9898 阅读(65) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<stdlib.h> int main(){ int i; char ch; FILE *fout; if((fout=fopen("c:\\mmmmm\\test.txt","w"))==NULL) { printf("没有找到该文件!\n"); 阅读全文
posted @ 2022-05-12 11:43 CC9898 阅读(113) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include<stdlib.h>#include<string.h> //写函数void writetext(FILE *fw){ char str[80]; gets(str); while(strcmp(str,"-1")!=0) { fputs(str,f 阅读全文
posted @ 2022-05-12 11:42 CC9898 阅读(111) 评论(0) 推荐(0)