The priming read

(Display Listing 2.)

The code that appears before the beginning of the while loop in Listing 2 is commonly known as a priming read.

The purpose of the priming read is: