What is the main function of a system-level call that reads data from a file?
2025
What is the main function of a system-level call that reads data from a file?
- A.
It extracts content from a file and copies it to a designated memory location.
- B.
It terminates access to a file once reading is complete.
- C.
It erases file contents after they are read.
- D.
It places data into a file from a memory buffer.
Attempted by 62 students.
Show answer & explanation
Correct answer: A
When a user program needs to access information stored on a non-volatile medium (like an SSD or Hard Drive), it cannot interact with the hardware directly due to operating system security boundaries. Instead, it must invoke a system call.