fclose is used to close a file.
Library: stdio.h Prototype: int fclose( FILE *stream); Syntax: FILE *fp; fclose(fp);