Set File Position Function
- Updated2025-07-30
- 3 minute(s) read
Moves the position of the current file mark of the file identified by refnum to the position indicated by offset (in bytes) according to the mode in from.

Inputs/Outputs
refnum
—
refnum is the file refnum associated with the file whose file mark you want to move.
offset (in bytes) (0)
—
offset (in bytes) specifies how far from the location specified by from to set the file mark.
from (0:start)
—
from, together with offset (in bytes), specifies where to set the file mark. If you wire offset (in bytes), from defaults to 0, and the offset is relative to the beginning of the file. If you do not wire offset (in bytes), offset (in bytes) defaults to 0, from defaults to 2, and the operation starts at the current file mark.
error in
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
refnum out
—
refnum out returns refnum.
error out
—
error out contains error information. This output provides standard error out functionality. |
refnum
—
offset (in bytes) (0)
—
from (0:start)
—
error in
—
refnum out
—
error out
—