read_to_string

Function read_to_string 

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

Reads a file into a string.

Equivalent to std::fs::read_to_string with better error messages.