O'Reilly logo

Just Enough C/C++ Programming by Guy W. Lecky-Thompson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. File I/O

Handling files is a very important part of being able to write useful programs. Whether you’re using back-end daemons for delivering content on the World Wide Web, using database files, editing text, or processing data in other ways, you’ll need files in order to accomplish these tasks.

When you store data in files, it’s persistently stored, whereas any of the other functions for data manipulation only do so while maintaining data in memory. Once the computer is turned off or the application has been terminated, the data is lost.

The aim of this chapter is to show you how to use standard input and output manipulation functions to process information in files.

Using these functions, you can use files to store data permanently. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required