CPP MCQ
What is meant by ofstream in c++?
A)
Writes to a file
B)
delete a file
C)
Reads from a file
D)
Writes to a file & Reads from a file

Correct Answer : Option (A) :   Writes to a file

Explanation : ofstream : This data type represents the output file stream and is used to create files and to write information to files.