Horje
write in file in c Code Example
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;
}
write to file in c programming
  [...]
  printf("Enter name: \n");
  if (fgets(name, sizeof name, stdin)) {
    fputs(name,fileptr);
    fclose(fileptr);
    printf("File write was successful\n");
  } else {
    printf("Read error.\n");
  }




16

Related
c how to get an integer from user input Code Example c how to get an integer from user input Code Example
fahrenheit to celsius formula Code Example fahrenheit to celsius formula Code Example
install gitk mac Code Example install gitk mac Code Example
how to print int in c Code Example how to print int in c Code Example
mongodb delete all documents Code Example mongodb delete all documents Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10