O'Reilly logo

Object-oriented Programming Using C++ and Java by Anand Vasappanavara, Gautam Vasappanavara, Ramesh Vasappanavara

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

13

IO Streaming

LEARNING OBJECTIVES

At the end of the chapter, you will be able to understand and program

  • Unformatted and formatted stream operators.

  • Use IO manipulator to format output.

  • Sequential and random/direct access file handling.

  • Read objects from and write objects onto a file

13.1 Introduction

What crosses your mind when you think of streams? Probably streams of water, we call them springs, flowing from the top of a hill to plains. In C++, we call streams or IO streams.

This chapter will introduce to you unformatted and formatted input and output streams. It deals extensively with stream manipulators that are used to format and control stream data. The chapter also concentrates on file handling in C++ through <fstream> header file. ...

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