Function read_to_string_sync

Source
pub fn read_to_string_sync(filename: &Path) -> Result<String>
Expand description

Read file contents to a string. If using within the web browser environment, a local storage key with the name of the file will be used.