Answers for "fopen cc"

C
1

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);
}
Posted by: Guest on October-12-2020

Code answers related to "C"

Browse Popular Code Answers by Language