Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c fopen

#include <stdio.h>
#include <stdlib.h>

int main () {
   FILE * fp;

   fp = fopen ("file.txt", "w+");
   fprintf(fp, "%s %s %s %d", "We", "are", "in", 2012);
   
   fclose(fp);
   
   return(0);
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #fopen
ADD COMMENT
Topic
Name
1+6 =