read_to_string

Function read_to_string 

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

Read the entire contents of a file into a string.

Returns an error if the file contents are not valid UTF-8.