readBytesOrNull

Returns the contents of the file at path, or null when the file does not exist, cannot be read, or is larger than Int.MAX_VALUE bytes.

A relative path resolves against basePath; an absolute one is used as given.

Has no sample because it needs a file on disk.