reads all remaining bytes from a file, and returns them as a list of integers from 0 to 255.


reads objects of the specified type from a file, until the end of the file is reached. The list of objects read is returned.


reads objects with a sequence of types, until the end of the file is reached.


reads only the first n objects of the specified types.

Details and Options


open allclose all

Basic Examples  (1)

Create a file with a sequence of bytes:

Read all the data in the file:

Read the data as objects of a sequence of types:

Scope  (1)

Read bytes from the file specified using File object:

Properties & Relations  (1)

BinaryReadList reads all the bytes in a file, returning them as a list:

ReadByteArray reads all the bytes, returning them as a ByteArray object:

Introduced in 2004
Updated in 2016