Skip to main content

read_to_string_optional

Function read_to_string_optional 

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

Read a file into a UTF-8 string.

Missing files map to Ok(None); other I/O errors are surfaced.