Important: The information in this document is obsolete and should not be used for new development.
PBSetFPos
You can use thePBSetFPosfunction to position the file mark before reading from or writing to an open file.
FUNCTION PBSetFPos (paramBlock: ParmBlkPtr; async: Boolean): OSErr;
paramBlock- A pointer to a basic File Manager parameter block.
async- A Boolean value that specifies asynchronous (
TRUE) or synchronous (FALSE) execution.
--> ioCompletionProcPtrA pointer to a completion routine. <-- ioResultOSErrThe result code of the function. --> ioRefNumIntegerA file reference number. --> ioPosModeIntegerThe positioning mode. <-> ioPosOffsetLongIntOn input, the positioning offset. On output, the position at which the mark was actually set. DECRIPTION
ThePBSetFPosfunction sets the mark of the specified file to the position specified by theioPosModeandioPosOffsetfields. If you try to set the mark past the logical end-of-file,PBSetFPosmoves the mark to the end-of-file and returnseofErras its function result.ASSEMBLY-LANGUAGE INFORMATION
The trap macro forPBSetFPosis_SetFPos.RESULT CODES