created 01/16/99; revised 01/20/00

CHAPTER 23 --- File Input Techniques

The vast majority of programs get their data from one or more files and write their results to one or more files. Usually input from the user is used only to specify details of the processing that is to be performed with the files. This chapter will discuss some useful techniques for processing data from an input file.

Chapter Topics:

  • Three types of input loops.
  • Counting input loops.
  • Several groups of data in one file.
  • Sentinel controlled input loops.

QUESTION 1:

(Not again!) What are the three types of loops?

Click Here after you have answered the question