Function gstuff::slurp [] [src]

pub fn slurp(path: &AsRef<Path>) -> String

Read contents of the file into a String.

Returns an empty string if the file is not present under the given path.