/*
{ "description" : "Reads values from a text file with [sections] and key=value format. Each section or property must be on a separate line in the file."}
*/
uses data.KeyValue
data ConfigSection {
char name[]
KeyValue values[]
}
interface ConfigSectionFile {
/*
{ "@description" : "Create a config file instance pointing to the given config file."}
*/
ConfigSectionFile(char configFile[])
/*
{ "@description" : "Read the named section from the config file."}
*/
ConfigSection getSection(char name[])
}To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n util.ConfigSectionFile -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: Adds support for optional headers, updates config file format to an extensible one, adds sectional config file parser