pub(crate) fn file_to_string(path: &Path) -> Result<String>
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.