next up previous contents index
Next: uniqueName Up: File Previous: remove   Contents   Index


setPosition!,setPositionFromEnd!,setRelativePosition!


Usage

setPosition!,setPositionFromEnd!,setRelativePosition!(f,n)


Signature

setPosition!,setPositionFromEnd!,setRelativePosition!: (%,Z) $\to$ 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



Manuel Bronstein 2004-06-28