Read OnLine C- Program Example

10_FILE HANDLING
PRAC 3  

//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();
}

Previous
Download