Function rust_utils::utils::read_file[][src]

pub fn read_file<P: Into<String>>(path: P) -> String

abstraction around fs::read_to_string() that includes error handling Returns the file content as a String or returns “ERR” if something went wrong