The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



Reads a specified number of bytes from the archive.

      UINT Read(
   void* lpBuf,
   UINT nMax 


A pointer to a user-supplied buffer that is to receive the data read from the archive.


An unsigned integer specifying the number of bytes to be read from the archive.

An unsigned integer containing the number of bytes actually read. If the return value is less than the number requested, the end of file has been reached. No exception is thrown on the end-of-file condition.

The archive does not interpret the bytes.

You can use the Read member function within your Serialize function for reading ordinary structures that are contained in your objects.


char pbRead[100];
ar.Read(pbRead, 100);


Header: afx.h