General Information about File operations in C++2.1 Data Flows
tudents ID e.g.
2.2 - Files and Operation in C++
File processing in C++ is performed using the
is a complete C++ class with constructors, adestructor and overloaded operators .To perform file processing, you can declare an instance of an
object. If you do not yet know the name of the file you want toprocess, you can use the default constructor.Unlike the
class provides two distinct classesfor file processing. One is used to write to a file and the other is used to readfrom a file.
2.3 - How to Open a File
Another operation you can perform consists of opening an already existingfile to have access to its contents. To do this, C++ providesthe
class provides various constructors youcan use, two of which are particularly important . If you have enough