BinaryStream.Length

From Xojo Documentation

Revision as of 17:51, 16 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Supported for all project types and targets.

The length of the file in bytes. If you set the Length property to a value smaller than its current value, it will truncate the file.

Sample Code

Var i As UInt64
Var readStream As BinaryStream = BinaryStream.Open(readFile, False)
i = readStream.Length