To write data to a file, you define an object of type fstream to read data from a file, you define an object of type ofstream. The correct options are c and d.
Data is an amount of information and collection that is recorded and saved for a gathering of information that is used in the future. Data is of various kinds.
In a computer, data files are saved and all the things that happen in the computer are saved in the computer memory.
C++ Files and Streams are fstreams and ofstream is a C++ output file stream.
Therefore, the correct option is c, ofstream, and d, fstream.
To learn more about data, refer to the link:
https://brainly.com/question/11941925
#SPJ1
The question is incomplete. Your most probably complete question is given below:
inputFile
ifstream
ofstream
fstream