we need to use file_close() function.