Sabtu, 08 Oktober 2016

what are file handling classes in C++

Following figure illustrates the stream classes for working with files: fstreambase: The fstreambase is the base class for ifstream, ofstream, and fstream classes. Functions such are open() and close() are defined in this class.   fstream: It allows simultaneous input and output operations on filebuf. This class inherits istream andostream classes. Member functions of the base classes istream and ostream starts the input and output.   ifstream: This class inherits both fstreambase and istream classes. It can access member functions such as get(), getline(), seekg(), tellg(), and read(). It allows input operations and provides open() with the default input mode.   ofstream: This class inherits both fstreambase and ostream classes. It can access member functions such as put(), seekp(), write(), and tellp(). It allows output operations and provides the open() function with the default output mode.   filebuf: The filebuf is

The post what are file handling classes in C++ appeared first on Coding Security.


what are file handling classes in C++
read more

Tidak ada komentar:

Posting Komentar