Important: The information in this document is obsolete and should not be used for new development.
WriteEdition
Use theWriteEdition
function to write data to an edition. This function begins writing at the current mark for the specified format.
FUNCTION WriteEdition (whichEdition: EditionRefNum; whichFormat: FormatType; buffPtr: UNIV Ptr; buffLen: Size): OSErr;
whichEdition
- The reference number for the edition.
whichFormat
- The format type that you want to write.
buffPtr
- A pointer to the buffer containing the data to write to the edition.
buffLen
- The number of bytes that you want to write to the edition.
DESCRIPTION
TheWriteEdition
function writes the specified number of bytes to the edition. If the data cannot be entirely written to the edition, theWriteEdition
function returns an error.RESULT CODES
noErr 0 No error dskFulErr -34 Disk is full ioErr -36 I/O error rfNumErr -51 Bad edition reference number editionMgrInitErr -450 Manager not initialized SEE ALSO
For an example that writes data to an edition, see Listing 2-5 beginning on page 2-36.