/* This is program which open file and append string on file */
#include<stdio.h>
#include<conio.h>
int main()
{
FILE *fp;
fp= fopen(“D:\\info.txt”,”a”);
fprintf(fp,”%s”,”This is just an example :)”);/*writes data to the file*/
fclose(fp); /*done!*/
getch();
return 0;
}