Closing
a file –:
After every successful fie operations, you must always close a file. For
closing a file, you have to use fclose
function. The snippet for closing a file is given as :
FILE
*filePointer ;
filePointer= fopen(“fileName.txt”, “w”);
----------
Some file Operations -------
fclose(filePointer)