Skip to main content

read_file_text

Function read_file_text 

Source
pub fn read_file_text(path: &Path) -> Result<String, Box<dyn Error>>
Expand description

read_file_contents as one owned String. An uncompressed file is read into it at any size instead of being mapped, so the text is held once and later changes to the file do not reach it.