Usage
setPosition!,setPositionFromEnd!,setRelativePosition!(f,n)
Signature
setPosition!,setPositionFromEnd!,setRelativePosition!: (%,Z) Z
where
Z == MachineInteger
Parameter | Type | Description |
---|---|---|
f | % | a file |
n | MachineInteger | a signed offset |
Description
setPosition!(f, n) sets the file position indicator of f to n, while setPositionFromEnd!(f, n) sets it to n from the end of file and setRelativePosition!(f, n) adds n to it. All three return 0 if no error occured, a nonzero error code (the value of errno from C) otherwise.
See Also
position