pub fn read(
path: impl AsRef<Path>,
maximum_bytes: usize,
) -> Result<Vec<u8>, FileError>
Expand description
Read binary bytes up to a caller-supplied limit. Empty files succeed;
missing files fail. Checks the actual stream, including a growing file.