explain modes of file 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: c open a file and write stuff
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 );