Chapter 11. C File Processing


I read part of it all the way through.

 --Samuel Goldwyn

Hats off!

The flag is passing by.

 --Henry Holcomb Bennett

Consciousness ... does not appear to itself chopped up in bits. ... A “river” or a “stream” are the metaphors by which it is most naturally described.

 --William James

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

 --Senator Frank Church

In this chapter, you will learn:


To create, read, write and update files.


Sequential access file processing.


Random-access file processing.


11.1 Introduction

11.2 Data Hierarchy

11.3 Files ...

Get C How to Program, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.