O'Reilly logo

Numerical C: Applied Computational Programming with Case Studies by Philip Joyce

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

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

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