Should call close() function of the file.