[%CFEngine_function_prototype(filename, maxbytes)%]
Description: Parses YAML data from the first maxbytes bytes of
file filename and returns the result as a data variable.
[%CFEngine_function_attributes(filename, maxbytes)%]
Example:
```cf3 vars:
"loadthis"
data => readyaml("/tmp/data.yaml", 4000); ```
See also: parsejson(), parseyaml(), storejson(), mergedata(), and data documentation.