...
| Code Block | ||
|---|---|---|
| ||
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; |
...
...
| Code Block | ||
|---|---|---|
| ||
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; |
...