) in order, the three-step process of using a file in a c++ program involves: 94) ______

a.open the file, read/write/save data, close the file

b.insert a disk, open a file, remove the disk

c.create the file contents, close the file, name the file

d.name the file, open the file, delete the file

e.none of these

Respuesta :

The correct answer is C

There are several operations that can be performed on a file in C++. Some of these operations include (but not limited to): the read, write and append operations. The correct option is (a)

Irrespective of the file operation, the following activities must be done on the file.

  1. Open the file
  2. Perform the intended operation or series of operations -> read, write, append, save etc.
  3. Close the file

The above three activities must be done in the listed order.

i.e. the file must be opened before carrying any operation on it; after which the file is closed.

Hence, we can conclude that option (a) is correct.

Learn more about c++ file operations at:

https://brainly.com/question/15788960s

Q&A Education