Home » C++ Programming » Basic Input/Output » Question
  1. What is meant by ofstream in c++?
    1. Input garbage value
    2. Writes to a file
    3. Reads from a file
    4. Writes to a file & Reads from a file
    5. None of these
Correct Option: B

ofstream is a stream class to write on files.



Your comments will be displayed only after manual approval.