C language fwrite function example

https://‮al.www‬utturi.com
C language fwrite function example
#include<stdio.h>

int main () {
   FILE *fp;
   char str[] = "text to writed in file";

   fp = fopen( "file.txt" , "w" );
   fwrite(str , 1 , sizeof(str) , fp );

   fclose(fp);
  
   return(0);
}
Created Time:2017-08-28 19:06:45  Author:lautturi