Example of writing text file in C language

Example of writing text file in C language
re‮ref‬ to:lautturi.com
#include<stdio.h>
int main(){
	FILE *out=fopen("name_of_file.txt","w"); // Open the file in write mode
	fputs("Hello File",out); // Write data
	fclose(out); // Close the file
	return 0;
}
Created Time:2017-08-29 12:58:44  Author:lautturi