28. Can My Programs Save Stuff on Disk?

With Sequential Files

image

None of the programs you’ve seen so far have been able to store data for very long. Think about this for a moment: If you defined an integer variable, put a 14 in it and then turned off the computer (believe me now and try it later), that variable would no longer have 14 in it! If you turned your computer back on and tried to find the value in the variable, you couldn’t find it—no way.

This chapter explains how to save data to your disk. Once the data is on your disk, it will be there until you change or ...

Get Absolute Beginner’s Guide to C, 2nd 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.