head 1.1;
access;
symbols;
locks; strict;
comment @ * @;
1.1
date 2014.03.20.02.00.48; author root; state Exp;
branches;
next ;
desc
@this is the program to copy contents of one file into another using fputc.
@
1.1
log
@Initial revision
@
text
@#include
#include
int main()
{
FILE *fp, *fp1;
char ch,ch1;
fp=fopen(“/home/priya/pp1.c”,”r”);
fp1=fopen(“/home/priya/palak1.c”,”w”);
do
{
ch=fgetc(fp);
ch1=fputc(ch,fp1);
}
while(ch !=10);
// printf(” the string is ch is %c”,ch);
// printf(“the string is ch is %c”,ch1);
return 0;
}
@