© Philip Joyce 2019
P. JoyceNumerical Chttps://doi.org/10.1007/978-1-4842-5064-8_9

9. File Access

Philip Joyce1 
(1)
Goostrey, UK
 

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

Get Numerical C: Applied Computational Programming with Case Studies 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.