10

FILE HANDLING IN C++

10.1 FILE CONCEPTS

We know that every program or sub-program consists of two major components: algorithm and data structures. The algorithm takes care of the rules and procedures required for solving the problem and the data structures contain the data. The data is manipulated by the procedures for achieving the goals of the program as shown in Fig. 10.1.

Figure 10.1

Figure 10.1 The structure of a program or sub-program

In object-oriented programming (OOP), an object is central to the ideology. The object has two components: states and behaviours. The states and behaviours model the data and procedures, respectively. Each behaviour ...

Get Object-Oriented Programming with C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.