In C++, you can interact (read/write) with disk files using filestream classes.The C++ filestream is very similar to standard cin and cout streams.Just like cin and cout, there are two classes for filestream: ifstream for input and ofstream for output.For the input stream, you can imagine there is a stream connected to disk file and characters are copied from the file to the stream and your program is reading characters from the stream.For the output stream, you can imagine the opposite way of the input stream: your program writes to the stream and stream to the disk file. Basic Usage READ MORE