Answer:
The missing part is
if ( !inFile )
Explanation:
The full codes are as follows:
Given that inFile is an ifstream object. When inFile is used to open "myfile.data", there will be possibility where myfile.dat is not available. If so, !inFile will be interpolated as true in the if condition and generate the message "Cannot open input file". This is one very simple way to check if the file exist when we try to read it from our program.