
Reading Binary Data from an ifstream
To read a binary value from an input file stream (ifstream) object, use the read() member function. read() takes two parameters: char * and long, which hold the address of the buffer to which the value is written and its size, respectively. The following code snippet retrieves an int from