fclose example c
Example: fclose C
#include <stdio.h>
int main () {
FILE *fp;
fp = fopen("file.txt", "w");
fprintf(fp, "%s", "This is tutorialspoint.com");
fclose(fp);
return(0);
}
#include <stdio.h>
int main () {
FILE *fp;
fp = fopen("file.txt", "w");
fprintf(fp, "%s", "This is tutorialspoint.com");
fclose(fp);
return(0);
}