#include <stdio.h>
void main(){
FILE *fp;
char ch;
fp=fopen("E:\\exp01.txt","r");
ch=fgetc(fp);
while(ch!=EOF){
putchar(ch);
ch=fgetc(fp);
}
printf("\n");
fclose(fp);
}
#include <stdio.h>
void main(){
FILE *fp;
char ch;
fp=fopen("E:\\exp01.txt","r");
ch=fgetc(fp);
while(ch!=EOF){
putchar(ch);
ch=fgetc(fp);
}
printf("\n");
fclose(fp);
}
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。