Skip to main content

read_to_string

Function read_to_string 

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

Read an entire file as a string (async).

Returns Ok(content) or an error message.