BinaryStream.ReadUInt8

From Xojo Documentation

Method

BinaryStream.ReadUInt8() As UInt8

New in 2005r5

Supported for all project types and targets.

Reads a one-byte value from the stream and returns it as a UInt8.

Sample Code

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