ofstream

Work with Files in C++

Submitted by pavel7_7_7 on
In this article you'll read about how to work with files in c++. Files allow users to read a huge amount of data directly from the disc without entering the data from keyboard. There are two main types of files : text files and binary files. Text files are files that consist of the sequences of any symbols. This sequence is organized in rows that are separated by the newline character "\n".