Skip to main content

read_text_if_exists

Function read_text_if_exists 

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

Read an entire UTF-8 text file when it exists.

ยงErrors

Returns a contextual error for failures other than a missing path.