Which of the following system call is used for opening or creating a file?

Minh Tung

New member
Which of the following system call is used for opening or creating a file?
A. read
B. write
C. open
D. close
 
Answer: c
Explanation: To read or write to a file, we first need to open it. For this purpose, open system call is used. Open has two forms ; the first forms assumes that the file already exists and the second form creates the file if it doesn’t.
 

Tìm kiếm

Back
Top