Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#FFCCCC
char *file_name;
FILE *fd;

/* initialize file_name */

fd = fopen(file_name, "wr+");
if (fd == NULL) {
  /* Handle error */
}

/* read user's file */

fclose(fd);
fd = NULL; 

...