C++
Chapter 14 - File Processing

Chapter: 14

The following are file I/O examples.  This material is covered in Chapter 14.   I present it here because it is congruent with stream IO operations.  Each example build upon the next.  Please read through the comments to see the progression of the functionality.  Note how we first start with text files and progress to binary files.  The main difference occurs in the object class where we change how an object stores itself.

In Class Work Shop

Use the following code to create a working examples of file I/O.  Study the code and observer the behavior.

Basic Text File I/O for a class textio.cpp
Reading and writing object components to a binary file binio1.cpp
Reading and writing complete objects to a binary file binio2.cpp
Reading and writing objects with compressed strings binio3.cpp


04/12/00 03:51 PM