read YAML data from a file
string; file or URL to read from
(optional) options as specified below
either table, record, or DataSeries. Specifies the data structure to use for parsed data corresponding to YAML objects (collections of key/value pairs). With output=table (the default), an object is encoded as table; with output=record, it is encoded as a record; with output=DataSeries, it is encoded as a DataSeries.
The ParseFile(source) command reads YAML data from the file or URL source.
If source is a file, it is closed after it is read.
Parse an input YAML file to a Maple table
table⁡phoneNumbers=table⁡number=+1 (519) 747-2373,type=local,table⁡number=+1 (800) 267-6583,type=toll-free,table⁡number=+1 (519) 747-5284,type=fax,companyName=Maplesoft,address=table⁡city=Waterloo,postalCode=N2V 1K8,country=Canada,streetAddress=615 Kumpf Drive,province=ON,founded=1988
Parse the same input YAML file to a Maple record
The YAML[ParseFile] command was introduced in Maple 2017.
For more information on Maple 2017 changes, see Updates in Maple 2017.
Download Help Document
What kind of issue would you like to report? (Optional)