Ensuring That the File Was Opened

Before attempting to retrieve data from the file, the program uses the condition !inClientFile to determine whether the file was opened successfully.

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.