Skip to main content

read_to_string_or_default

Function read_to_string_or_default 

Source
pub fn read_to_string_or_default(path: &Path) -> String
Expand description

Read a file into a string, returning an empty string on error.

This is intentionally lossy and should be used for best-effort output only.