ConfigStore.load

ConfigStore load(string filePath, CdmDocument.Format fmt = CdmDocument.Format.UNKNOWN) @safe

Load configuration from a file.

Parses the file to CDM, converts to var, then discards CDM to minimize memory usage.

Parameters

filePathPath to the configuration file
fmtOptional format override (auto-detected if UNKNOWN)

Returns

A ConfigStore with the loaded configuration.

Throws

Exception if the file cannot be read or parsed.