www.gibmonks.com

Main Page




Previous Page
Next Page

[Page 841]

Chapter 17. File Processing

I read part of it all the way through.

Samuel Goldwyn

I can only assume that a "Do Not File" document is filed in a "Do Not File" file.

Senator Frank Church

Senate Intelligence Subcommittee Hearing, 1975

A great memory does not make a philosopher, any more than a dictionary can be called grammar.

John Henry, Cardinal Newman

OBJECTIVES

In this chapter you will learn:

  • To create, read, write and update files.

  • Sequential file processing.

  • Random-access file processing.

  • To use high-performance unformatted I/O operations.

  • The differences between formatted-data and raw-data file processing.

  • To build a transaction-processing program using random-access file processing.


[Page 842]

Outline

17.1 Introduction

17.2 The Data Hierarchy

17.3 Files and Streams

17.4 Creating a Sequential File

17.5 Reading Data from a Sequential File

17.6 Updating Sequential Files

17.7 Random-Access Files

17.8 Creating a Random-Access File

17.9 Writing Data Randomly to a Random-Access File

17.10 Reading from a Random-Access File Sequentially

17.11 Case Study: A Transaction-Processing Program

17.12 Input/Output of Objects

17.13 Wrap-Up

Summary

Terminology

Self-Review Exercises

Answers to Self-Review Exercises

Exercises


Previous Page
Next Page