read_to_string

Function read_to_string 

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

Reads the entire contents of a file into a string.

ยงErrors

May return any of the same errors as std::fs::read_to_string