Skip to main content

read_to_string

Function read_to_string 

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

Read a file into a UTF-8 string.

On error, the returned diagnostic includes the failing path.