Set File Position Function

LabVIEW 2017 Help

Edition Date: March 2017

Part Number: 371361P-01

»View Product Info
Download Help (Windows Only)

Owning Palette: Advanced File VIs and Functions

Requires: Base Development System

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.

refnum is the file refnum associated with the file whose file mark you want to move.
offset (in bytes) specifies how far from the location specified by from to set the file mark.
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.

0start—Sets the file mark offset (in bytes) bytes from the beginning of the file. If from is 0, offset (in bytes) should be positive or 0, which sets the file mark at the beginning of the file.
1end—Sets the file mark offset (in bytes) bytes from the end of the file. If from is 1, offset (in bytes) should be negative or 0, which sets the file mark at the end of the file.
2current—Sets the file mark offset (in bytes) bytes from the current file mark.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
refnum out returns refnum.
error out contains error information. This output provides standard error out functionality.

WAS THIS ARTICLE HELPFUL?

Not Helpful