C++ Program Write a ‘C’ Program to append the containt of one file at the end of another file.





#include<stdio.h>
#include<conio.h>
void main()
{
FILE *fp;
char ch;
clrscr();
fp=fopen("b.txt","a");
if(fp==NULL)
{
printf("\n Unable to open");
}
 while((ch=getchar())!=EOF)
{
fputc(ch,fp);
}
fclose(fp);
getch();
}
/* output
india is my country
all indians are may brothers and sisters.^Z^Z*/