WLJS LogoWLJS Notebook

ReadByteArray

ReadByteArray[src] gives the contents of src as a ByteArray object.

ReadByteArray[src,n] reads the first n bytes from src.

ReadByteArray[src,term] reads until the termination condition term is satisfied.

Examples

Read a file as a byte array:

ReadByteArray["example.bin"]

Read only the first 100 bytes:

ReadByteArray["example.bin", 100]

Please visit the official Wolfram Language Reference for more details.

On this page