Abstract
Being able to transfer data between applications is an essential requirement of most scientific computing software. For example, data defining the boundary of an object may be generated from an image processing application. This data may subsequently be used by many applications written by a variety of users. To allow exchange of data between applications in this manner requires us to store data in a clearly specified format. Reading and writing files to a given specification therefore plays a key role in scientific computing applications. Although C++ offers an extremely large number of commands for writing to, and reading from, file, almost all file formats can be achieved by using a very small subset of these commands. In this chapter we focus on the commands that allow file input and output to any reasonable specification for scientific computing software.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Mathematical Methods and Linear Algebra
Süli, E., Mayers, D.F.: An Introduction to Numerical Analysis. Cambridge University Press, Cambridge (2006)
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2012 Springer-Verlag London Limited
About this chapter
Cite this chapter
Pitt-Francis, J., Whiteley, J. (2012). File Input and Output. In: Guide to Scientific Computing in C++. Undergraduate Topics in Computer Science. Springer, London. https://doi.org/10.1007/978-1-4471-2736-9_3
Download citation
DOI: https://doi.org/10.1007/978-1-4471-2736-9_3
Publisher Name: Springer, London
Print ISBN: 978-1-4471-2735-2
Online ISBN: 978-1-4471-2736-9
eBook Packages: Computer ScienceComputer Science (R0)