Areel Xocha
0
Q:

fopen c

FILE *fopen(const char *filename, const char *mode)
1
#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);
}
0

New to Communities?

Join the community