Answers for "how to write an str to file c"

C
25

write in file in c

#include<stdio.h>
int main(){
	FILE *out=fopen("name_of_file.txt","w");
	fputs("Hello File",out);
	fclose(out);
	return 0;
}
Posted by: Guest on April-30-2020

Code answers related to "C"

Browse Popular Code Answers by Language