diff --git a/main.c b/main.c index ca517d6..e49ac19 100644 --- a/main.c +++ b/main.c @@ -40,31 +40,31 @@ WORD DoTheWork(STRPTR filename) // ConfigFileSet(config, "branch.main.foob", "bar"); // ConfigFileSet(config, "branch.alan.foob", "bar"); ConfigFileSet(config, "branch.main.remote", "testing"); -// ConfigFileSet(config, "branch.main.second", "testing"); + ConfigFileSet(config, "branch.main.second", "testing"); // ConfigFileSet(config, "branch.main.third", "testing"); - ConfigFileReplaceAll(config, "branch.main.alan", "hello"); - ConfigFileAddVariable(config, "branch.main.newvar", "alan"); - ConfigFileAddVariable(config, "branch.main.newvar", "alan2"); - ConfigFileAddVariable(config, "branch.main.newvar", "alan3"); - ConfigFileReplaceAll(config, "branch.main.newvar", "goodbye"); - ConfigFileAddVariable(config, "branch.main.newvar1", "yay"); +// ConfigFileReplaceAll(config, "branch.main.alan", "hello"); +// ConfigFileAddVariable(config, "branch.main.newvar", "alan"); +// ConfigFileAddVariable(config, "branch.main.newvar", "alan2"); +// ConfigFileAddVariable(config, "branch.main.newvar", "alan3"); +// ConfigFileReplaceAll(config, "branch.main.newvar", "goodbye"); +// ConfigFileAddVariable(config, "branch.main.newvar1", "yay"); -// ConfigFileAddVariable(config, "foo1", "alan"); -// ConfigFileAddVariable(config, "test.foo1", "alan2"); -// ConfigFileAddVariable(config, "test.foo.foo1", "alan3"); -// ConfigFileAddVariable(config, "test.foo.bar.foo1", "alan4"); -// ConfigFileAddVariable(config, "test.foo.bar.baz.foo1", "alan5"); -// ConfigFileAddVariable(config, "test.foo.bar.baz.bat.foo1", "alan6"); -// ConfigFileAddVariable(config, "test.section.jane.foo3", "alan3"); -// values = ConfigFileSubsectionsForSection(config, "branch"); -// if( values ) -// { -// StringArrayForEach(values, Printf("branch:[%s]\n",aString);); -// StringArrayFree(values, TRUE); -// } - ConfigFileDump(config); + ConfigFileAddVariable(config, "foo1", "alan"); + ConfigFileAddVariable(config, "test.foo1", "alan2"); + ConfigFileAddVariable(config, "test.foo.foo1", "alan3"); + ConfigFileAddVariable(config, "test.foo.bar.foo1", "alan4"); + ConfigFileAddVariable(config, "test.foo.bar.baz.foo1", "alan5"); + ConfigFileAddVariable(config, "test.foo.bar.baz.bat.foo1", "alan6"); + ConfigFileAddVariable(config, "test.section.jane.foo3", "alan3"); + values = ConfigFileSubsectionsForSection(config, "branch"); + if( values ) + { + StringArrayForEach(values, Printf("branch:[%s]\n",aString);); + StringArrayFree(values, TRUE); + } + ConfigFileSave(config); -// ConfigFileFree(config); + ConfigFileFree(config); } else {