You will learn about the following in this chapter:
How to read and write byte-oriented data
How to read and write character-oriented data
How to read and write to and from files
How to read from a data source in tokens
This chapter begins by discussing the need for a common interface to read data from and write data to various resources such as files, the standard input and output, and the Internet. Then, it discusses the byte-oriented stream classes and the character-oriented stream classes.