BinaryStream.BytePosition

From Xojo Documentation

Property (As UInt64 )
aBinaryStream.BytePosition = newUInt64Value
or
UInt64Value = aBinaryStream.BytePosition

New in 2019r2

Supported for all project types and targets.

Gets or sets the current file position in the BinaryStream. The first position is numbered zero.

Notes

This property is automatically incremented by all of the Read and Write methods.

To move the position to the end of the stream, set it to BinaryStream.Length.

Sample Code

This code changes the position from the default position of zero.

readStream.BytePosition = 100