This chapter is about moving data to and from files. The basic commands of file access are fopen (which opens a file), fclose (which closes it), fread (which reads data from a file which has been opened), and fwrite (which writes data to a file which has been opened). There are one or two other file commands which we shall meet later.
We have already come across some of our file access commands in earlier chapters. In Chapter 7 when we were looking at our radioactivity simulation program, we wrote output data to a file which could then be used to input into the Graph package as data points for a graph. In Chapter ...