ReadEdition
ReadEdition Read data from an edition
#include <Editions.h> Edition Manager
OSErr ReadEdition ( whichEdition, whichFormat, buffPtr,
buffLen);
EditionRefNum whichEdition ; specifies the format length
FormatType whichFormat ; indicates the format type you want to read
void *buffPtr ; is a pointer to the buffer into which you want
to read the data.
Size * buffLen ; is the number of bytes that you want to read
into the buffer
returns Error Code; 0=no error
Use the ReadEdition function to read data from an edition. This function
reads from the current mark for the specified format.
whichEdition is the reference number for the edition.
whichFormat indicates the format type that you want to read.
buffPtr is a pointer to the buffer into which you want to read the data.
buffLen is the number of bytes that you want to read into the buffer. The
buffLen parameter is also a return value that returns the total
number of bytes read into the buffer. If the buffLen parameter
returns a value smaller than the value you have specified, there is no
additional data to read, and the ReadEdition function returns a
noErr result code. If you use the ReadEdition function after all
data is read in, the ReadEdition function returns an eofErr result
code.
Returns: an operating system Error Code.
noErr (0) No error
abortErr (-27) Publisher has written a new edition
eofErr (-39) No more data of that format
rfNumErr (-51) Bad edition reference number
noTypeErr (-102) Format not available
editionMgrInitErr (-450) Manager not initialized

Notes: You can read data from an edition while a publisher on the same machine is
writing data to the same edition. The data that you are reading is the old
edition (not the data that the publisher is writing). If the publisher
finishes writing data before you are through reading the old edition data, the
ReadEdition function returns an abortErr result code. If the
ReadEdition function returns an abortErr result code, you should stop
trying to read data and use the CloseEdition function with the successful
parameter set to FALSE.