Function virtual_fs::ops::read_to_string

source ·
pub async fn read_to_string<F>(
    fs: &F,
    path: impl AsRef<Path> + Send,
) -> Result<String, FsError>
where F: FileSystem + ?Sized,
Expand description

Asynchronously read a file’s contents into memory as a string.

This is analogous to std::fs::read_to_string().