CMPSC 201 Class #3 Lecture
(if time) Discuss the following Ch.8 demo programs:
- Ch. 8 Demo #1
- to illustrate
the use of string variables. We will use string variables rather than character
arrays as the textbook teaches.
- Ch. 8 Demo #2
- to illustrate
a potential error with the use of string variables.
- Ch. 8 Demo #3
- to demonstrate
opening a file for input and reading from the file.
- Ch. 8 Demo #4
- to illustrate
how to detect the end of a file while reading that file
- Ch. 8 Demo #5
- to illustrate
how to open a file for output and how to write to that file.
- Ch. 8 Demo #6
- to illustrate
how to append to a file