Closing a File >> fclose function >> File Handling
fopen function :
- After performing all Operations , FILE is no longer needed
- File is closed using fclose function
- All information associated with file is flushed out of buffer
- Prevent misuse of FILE
Syntax :
int fclose(FILE *fp);
Example :
fclose(fptr);
Return Type :
| Action | Return Value |
| On Success | 0 |
| On Error | NULL |

