Chapter 12: Problem 24
What are the two modes that a random access file may be opened in? Explain the difference between them.
Short Answer
Expert verified
Answer: The two modes in which a random-access file may be opened are read-only access mode and read-write access mode. In read-only mode, users can only read data from the file without making any changes to the content, while in read-write mode, users can read data from the file and make modifications or additions to the content. The main difference between the two modes is the ability to modify the file content - read-only mode prevents file modifications, while read-write mode allows for both reading and modifying the file content.