BinaryStream.ReadUInt64

From Xojo Documentation

Method

BinaryStream.ReadUInt64() As UInt64

New in 2005r5

Supported for all project types and targets.

Reads an eight-byte value from the stream and returns it as a UInt64.

Notes

If you read over the end of the stream you get zero returned from this method. There is no error and no exception. If you want to test for this error, you can check the EndOfFile, BytePosition, and Length properties.

Sample Code

Var i As UInt64
Var readFile As FolderItem = GetOpenFolderItem("text/plain")
If readFile <> Nil Then
Var readStream As BinaryStream = BinaryStream.Open(readFile, False)
i = readStream.ReadUInt64
End If