Computer Science for IGCSE & O level - Programming (Section 13 - No. 44)

Which of the following are good practices when working with files?
Always close the file after use.
Open the file without specifying a mode.
Handle potential exceptions (errors).
Assume all files exist.

Explanation

Closing files and handling exceptions are important aspects of file handling.

Comments (0)

Advertisement