fuchsia_fs::directory

Function read_file_to_string

Source
pub async fn read_file_to_string(
    parent: &DirectoryProxy,
    path: &str,
) -> Result<String, ReadError>
Expand description

Opens path from the parent directory as a file and reads the file contents as a utf-8 encoded string.