Skip to main content

read_string

Function read_string 

Source
pub fn read_string(path: &str) -> OpticResult<String>
Expand description

Read a file as a UTF-8 string.

ยงErrors

Returns OpticErrorKind::File if the file does not exist, is not valid UTF-8, or permission is denied.