pub fn read_to_string(path: impl AsRef<Path>) -> Result<String, FileError>
Expand description

Read the contents of a file from the given path and return as a String if it can be decoded as one of the supported encodings from Encoding.