pub fn read_file_as_string(path: &str) -> String
Expand description

Reads the contents of a file and returns it as a string.

Arguments

  • path - The path to the file to read.

Example

let contents = cgl_rs::utils::read_file_as_string("log.txt");