Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

fwrite c

#include<stdio.h>

int main () {
   FILE *fp;
   char str[] = "This is tutorialspoint.com";

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

   fclose(fp);
  
   return(0);
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #fwrite
ADD COMMENT
Topic
Name
7+3 =