file system program using 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: write in a file using c
#include<stdio.h>
int main(){
FILE *out=fopen("name_of_file.txt","w");
fputs("Hello File",out);
fclose(out);
return 0;
}