1.

Name the stream classes supported by C++ for file input and output.

Answer»

The stream classes supported by C++ for file input and output:

  • fstreambase class provides facilities for file operations.
  • Ifstream class supports read operations and consists of open () with default input mode.
  • ofstream class supports output operations and consists of open() with default output mode.
  • fstream() class supports both input and output operations. It contains open() with default input mode.
  • filebuf class sets the file buffer to read and write.


Discussion

No Comment Found