Skip to main content

read_to_string

Function read_to_string 

Source
pub fn read_to_string(
    path: impl AsRef<Path>,
    cap: &impl Has<FsRead>,
) -> Result<String, CapSecError>
Expand description

Reads the entire contents of a file into a string. Requires FsRead permission.