file_to_string

Function file_to_string 

Source
pub(crate) fn file_to_string(path: &Path) -> Result<String>
Expand description

A helper function to dump an entire file’s contents into memory.

Not to be used for files of unknown sizes that can eat up too much memory.