//wap to print #include <stdio.h> void main() { FILE *fp; clrscr(); file = fopen("file.txt","a"); fprintf(fp,"%s","This is just an example :"); /*append some text*/ fclose(fp); getch(); }