Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Wednesday, March 18, 2015

What is fclose() function ?



  • Closes a file which has been opened for use.
  • A file must be closed as soon as all operation on it have been completed.
  • If you not close a file after the operation, data or file can be damaged.
  • It prevents any accidental misuse of the file.
  • If we want to open a file in another mode first we close the open file.

Syntax:
     fclose ( file_pointer );
ex:
     FILE *fp;
     fp = fopen (“ data “,” w “);
     --------------------------
     --------------------------
    


     fclose ( fp );

No comments:

Post a Comment