Important: The information in this document is obsolete and should not be used for new development.
PBSetFPos
You can use thePBSetFPos
function 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.
--> ioCompletion
ProcPtr
A pointer to a completion routine. <-- ioResult
OSErr
The result code of the function. --> ioRefNum
Integer
A file reference number. --> ioPosMode
Integer
The positioning mode. <-> ioPosOffset
LongInt
On input, the positioning offset. On output, the position at which the mark was actually set. DECRIPTION
ThePBSetFPos
function sets the mark of the specified file to the position specified by theioPosMode
andioPosOffset
fields. If you try to set the mark past the logical end-of-file,PBSetFPos
moves the mark to the end-of-file and returnseofErr
as its function result.ASSEMBLY-LANGUAGE INFORMATION
The trap macro forPBSetFPos
is_SetFPos
.RESULT CODES