We have been dealing with input and output streams this whole time which are cin and cout respectively. The input/output stream is used with the <iostream> library.
In C++, as well as any programming language, you can read and write to a text file (.txt extension). This is done in a similar way to the input/output stream in terms of the library to include with the program. C++ provides 3 of them: