Feedback

  • Contents
 

File Position

This File I/O tool controls the current byte offset position in a file.

Inputs

File Handle

The handle for a file created during a FileOpenRead or FileOpenWrite step.

File Position

A byte offset in the file to which the position is to be set. This is an integer variable.

File Position Type

Determines how file position is interpreted. If set to zero, file position is the byte offset from the beginning of the file. If set to one, file position is the byte offset in relation to the current position. If set to two, the file position is the byte offset relative to the end of the file.

Outputs

New File Position

An integer variable whose value is set to the current byte offset position in the file when the operation is complete.

Note: File size can be determined by setting the file position to zero and file position type to one. Then examine the value of New File Position.

Exit Path

Next

This step always takes the Next exit path.