Chapter 10: Problem 9
What is the purpose of opening a file?
Short Answer
Expert verified
Answer: The purpose of opening a file in a computer program is to establish a connection between the file and the program, allowing the program to read, write, or append data to the file depending on the mode in which the file was opened. This ensures proper operation and data integrity while interacting with the file.