Prototype: readyaml(filename, optional_maxbytes)
Return type: data
Description: Parses YAML data from the file filename
and returns the result as a data
variable. maxbytes
is optional, if specified, only the first maxbytes
bytes are read from filename
.
Arguments:
filename
: string
- File name - in the range: "?(/.*)
optional_maxbytes
: int
- Maximum number of bytes to read - in the range: 0,99999999999
Example:
code
vars:
"loadthis"
data => readyaml("/tmp/data.yaml", 4000);
See also: data_expand()
, readdata()
, parsejson()
, parseyaml()
, storejson()
, mergedata()
, and data
documentation.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4