ofstream This type of data represents the output of the output and is used to create files and write details to files.
ifstream This type of data represents the input file stream and reads the information in files.
fstream This type of data represents a general file distribution and can both stream and navigate, which means it can create files, record information, and read data to files.
To perform file processing in C ++, the header files
In C ++, files are mainly managed using three streaming streams found in the fstream header file.
ofstream: Stream class to write to files
ifstream: Stream class to read files
fstream: Stream class for reading and writing from/to files.
|