WLJS LogoWLJS Notebook

BinaryRead

BinaryRead[stream] reads one byte of raw binary data from an input stream, and returns an integer from 0 to 255.

BinaryRead[stream, type] reads an object of the specified type.

BinaryRead[stream, {type1, type2, ...}] reads a sequence of objects of the specified types.

Examples

Read bytes from a stream:

stream = OpenRead["file.bin", BinaryFormat -> True];
BinaryRead[stream, "Integer32"]

Please visit the official Wolfram Language Reference for more details.

On this page