C program to read a file October 08, 2012 Get link Facebook X Pinterest Email Other Apps /* C program to read a file */ #include<stdio.h> #include<conio.h> void main() { char *name,c; FILE *f; clrscr(); printf("\nEnter File name:"); scanf("%s",name); f=fopen(name,"r"); c=fgetc(f); while(c!=EOF) { printf("%c",c); c=fgetc(f); } getch(); } Comments Anonymous10 March 2014 at 23:14big deal....ReplyDeleteRepliesReplyAdd commentLoad more... Post a Comment
big deal....
ReplyDelete