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.