Why we close a file after use-01028

Online Quiz This subjective question is related to the book/course vu cs609 System Programming. It can also be found in vu cs609 Mid Term Solved Past Paper No. 1.

Question 1: Why we close a file after use?
Answer:

To save our data stored on file. Also this process makes our program fast and reliable.

-- or --

You have finished with it. This is particularly important if you are writing to the file. The operating system does not switch on the disk drive to write just a single character to the disk, rather it waits until it has a load to write and then writes the lots in one go.


Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background