file_contents
Reads a file’s contents.
file_contents(path:string, [binary=bool]) -> blob|string
Description
Section titled “Description”The file_contents
function reads a file’s contents.
path: string
Section titled “path: string”Absolute path of file to read.
binary = bool (optional)
Section titled “binary = bool (optional)”If to read the file contents as a blob
, instead of a string
.
Defaults to false
.
Examples
Section titled “Examples”let $secops_config = file_contents("/path/to/file.json").parse_json()…to_google_secops client_email=$secops_config.client_email, …