Streaming: Both ifstream and ostream are embedded in
fstream class
fstream : It is derived from iostream stream class with read/write or input/output
abilities. This class also creates and attaches a filbuf buffer
object.
ofstream : Stream class to output/write to a file.