readyaml

Table of Contents

Prototype: readyaml(filename, maxbytes)

Return type: data

Description: Parses YAML data from the first maxbytes bytes of file filename and returns the result as a data variable.

Arguments:

  • filename: string, in the range: "?(/.*)
  • maxbytes: int, in the range: 0,99999999999

Example:

    vars:

      "loadthis"

         data =>  readyaml("/tmp/data.yaml", 4000);

See also: readdata(), parsejson(), parseyaml(), storejson(), mergedata(), and data documentation.