ImLearner
Tuesday, October 11, 2011
Copy a file to another file by creating implicity
#include
main( )
{
FILE *fp,*fw ;
char ch,ch1 ;
fp = fopen ("C:\pr1.txt", "r" ) ;
fw = fopen ("C:\pr2.txt","w");
while(1)
{
ch=getc(fp);
fputc(ch,fw);
if(ch==EOF)
break;
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment