c FILE * code example
Example 1: c file
#include <stdio.h>
#include <stdlib.h>
int main() {
printf("Hello Word!");
return 0;
}
Example 2: file in C
//to open a file
FILE=*fp;
fp=fopen("one.txt", "w");
//to close file
fclose(fp);
#include <stdio.h>
#include <stdlib.h>
int main() {
printf("Hello Word!");
return 0;
}
//to open a file
FILE=*fp;
fp=fopen("one.txt", "w");
//to close file
fclose(fp);