Can any body tell me how to fix the errors in this program? I am reading integer values from a binary file and displaying them!
Code:
int i;
ifstream::pos_type size;
ifstream pBinaryFile ("binaryfile.bin", ios::in|ios::binary|ios::ate); //other format to read from the binary file
if (!pBinaryFile)
{
printf("Unable to open file!");