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