pub fn read_to_string<P: AsRef<Path>>( path: P, data_dir: bool, ) -> Result<String, ApiError>
Read the entire contents of a file into a string.
Works similarly to [std::fs::read_to_string].
std::fs::read_to_string