#include<stdio.h>
#include<conio.h>
void main(){
FILE *fp;
char ch;
clrscr();
fp=fopen ("abc.txt","r+");
if(fp==NULL){
printf("opration failed!!\n");
getch();
exit(0);
}
while(ch !=EOF){
ch=fgetc (fp);
putc(ch,stdout);
}
getch();
fclose(fp);
}
#include<conio.h>
void main(){
FILE *fp;
char ch;
clrscr();
fp=fopen ("abc.txt","r+");
if(fp==NULL){
printf("opration failed!!\n");
getch();
exit(0);
}
while(ch !=EOF){
ch=fgetc (fp);
putc(ch,stdout);
}
getch();
fclose(fp);
}
No comments:
Post a Comment