[go: up one dir, main page]

read

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.