Advertisement

Beginning C++ pp 533-591 | Cite as

File Input and Output

  • Ivor Horton
Chapter

Abstract

THE C++ LANGUAGE has no provision for input and output. The subject of this chapter is the input and output (I/O) capabilities that are available in the Standard Library, which provides support for device-independent input and output operations. You’ve used elements of these facilities to read from the keyboard and output to the screen in all the examples so far. In this chapter I’ll expand on that and explain how you can read and write disk files. By the end of this chapter, you’ll have learned:

Keywords

Extraction Operator Output Stream Binary File Text Mode Binary Mode 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Ivor Horton 2014

Authors and Affiliations

  • Ivor Horton
    • 1
  1. 1.WAUnited Kingdom

Personalised recommendations