#include fileopen.c in c code example
Example 1: file in C
//to open a file
FILE=*fp;
fp=fopen("one.txt", "w");
//to close file
fclose(fp);
Example 2: fopen c
FILE *fopen(const char *filename, const char *mode)
//to open a file
FILE=*fp;
fp=fopen("one.txt", "w");
//to close file
fclose(fp);
FILE *fopen(const char *filename, const char *mode)