BinaryStream.Read Function

Reads Count characters from the stream starting at the Position property and returns them as a String. The optional parameter Encoding enables you to specify the text encoding to be defined on the returned string.

Syntax
result = BinaryStream.Read( Count, [Encoding] )

Parameters
Count | Integer
Encoding | TextEncoding (Optional)

Return Value
Result | String

# Notes

Use the Encodings object to specify the text encoding. If you omit this parameter (or pass Nil), then the encoding of the returned string will be Nil.