Answers:
write this program and save it as pro.c....run....it will show the program to the consol and write the source code into data.txt file................... #include<stdio.h> void main() { FILE *fp,*ft; char buff[100]; fp=fopen("pro.c","r"); if(fp==NULL) { printf("ERROR"); } ft=fopen("data.txt","w+"); if(ft==NULL) { printf("ERROR"); } while(getc(fp)!=EOF) { fscanf(fp,"%s",buff); printf("%s
",buff); fprintf(ft,"%s
",buff); } }
This seems to be taking longer than usual.
 Posted by: Ramesh
Contact Ramesh
If you have the better answer, then send it to us. We will display your answer after the approval.