lmayer@elgin.edu

Stream & File I/O

Lecture 10 OBJECTIVES

After completing this class, students will be able to:

  • Take input from a file using streams
  • Send output to a file using streams
  • Connect a stream to a file
  • Open a stream
  • Close a stream
  • Check for errors when opening a file for input or output
  • Use member functions with stream objects
  • Check for end-of-file
  • Use Get and Put to to input and output characters
  • Use Pre-defined character functions
  • Explain what an object is

Reading Assignment:Savitch:
Sections 10.1 - 10.2 pages 493 - 524 (Arrays)

Click here for presentation.

Homework: Vowel Count