pub fn ReadFile(
Path: PathBuf,
) -> ActionEffect<Arc<dyn FileSystemReader>, CommonError, Vec<u8>>Expand description
Creates an effect that, when executed, will read the entire contents of a file at the specified path into a byte vector.
It uses the FileSystemReader capability from the environment to perform
the actual file I/O.
§Parameters
Path: ThePathBufof the file to read.
§Returns
An ActionEffect that resolves with a Vec<u8> containing the file’s
content.