Differentiate between ifstream class and ofstream class.
Answer»
The ifstream class supports input operations whereas ofstream class supports output operations on file.
The ifstream class inherits functions from is stream whereas stream class inherits functions from ostream.
The inherited member functions of ifstream are get(), getlineQ, read(), seekgQ and tellgO whereas ofstream member function are put(), write(), seekp() and tellp().