CHAPTER 12

image

Working with Files

If your computer could only ever process data stored within the main memory of the machine, the scope and variety of applications you could deal with would be severely limited. Virtually all serious business applications require more data than would fit into main memory and depend on the ability to process data that’s persistent and stored on an external device such as a disk drive. In this chapter, you’ll explore how you can process data stored in files.

C provides a range of functions in the header file stdio.h for writing to and reading from external devices. The external device you would use for storing and retrieving ...

Get Beginning C, Fifth Edition 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.