std.fs.read_file

std.fs

read_file(filename) -> content, err

Read the entire contents of a file

Reads the file at the given path and returns its contents as a string. Returns nil and an error message if the file cannot be read.