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. ...