Line 32 reads a set of data (i.e., a record) from the file. After line 32 executes the first time,
account has the value
name has the value
balance has the value
24.98. Each time line 32 executes, it reads another record from the file into the variables
balance. Line 33 displays the records, using function
outputLine (lines 37–41), which uses parameterized stream manipulators to format the data for display. When the end of file has been reached, the implicit call to operator void * in the while condition returns the null pointer (which converts to the
ifstream destructor closes the file and the program terminates.