The standard C library provides fopen and the system call open to open and possibly create files. Each call to one of
these functions must be matched with a respective call to fclose or close.
Failing to close files that have been opened may lead to using up all of the OS’s file handles.