♠ Posted by Unknown in CPP Language at 04:15
Important Classes for File Operation
The I/O system of C++ contains a set of
classes that defines the file handling methods. These include ifstream,
ofstream and fstream.
These classes are derived from fstreambase and from the corresponding iostream class.
These classes are derived from fstreambase and from the corresponding iostream class.
filebuf |
Its purpose is to set the file buffers to
read and wirte. Contains Openprot constant used in the open() of file stream
classes. Also contain close() and open() as members.
|
fstreambase |
Serves as a base for fstream, ifstream and
ofstream class. Contains open() and close() functions.
|
ifstream |
Provides input operations. Contains open()
with default input mode. inherits the functions get(), getline(), read(),
seekg() and tellg() functions from istream.
|
ofstream |
Provides output operations. Contains open()
with default output mode. inherits put(), seekp(), tellp(), and write()
functions from ostream.
|
fstream |
Provides support for simultaneous input and
output operations. Contains open() with default input mode. inherits all the
functions from istream and ostream
classes through iostream.
|
0 comments:
Post a Comment