EmbLogic's Blog

program of string.

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;
}

@

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>