read_to_string

Function read_to_string 

Source
pub fn read_to_string<P: AsRef<Path>>(
    path: P,
    data_dir: bool,
) -> Result<String, ApiError>
Expand description

Read the entire contents of a file into a string.

Works similarly to [std::fs::read_to_string].