Professional Documents
Culture Documents
61 A
61 A
61 A
#include<stdio.h>
int main()
{
FILE *fs;
char ch,c[100]="MRITS";
clrscr();
fs=fopen("a.txt","r");
while(!feof(fs))
{
ch=fgetc(fs);
printf("%c",ch);
}
fclose(fs);
fs=fopen("a.txt","a");
fprintf(fs,"%s",c);
fclose(fs);
fs=fopen("a.txt","r");
while(!feof(fs))
{
ch=fgetc(fs);
printf("%c",ch);
}
fclose(fs);
getch();
return 0;
}