fs_err::tokio

Function read

source
pub async fn read(path: impl AsRef<Path>) -> Result<Vec<u8>>
Available on crate feature tokio only.
Expand description

Reads the entire contents of a file into a bytes vector.

Wrapper for tokio::fs::read.