From 2eee23c832f93e2cfa93ec2c5f2cc746b83dd675 Mon Sep 17 00:00:00 2001 From: Michael Rieger Date: Wed, 9 Apr 2008 00:20:33 +0200 Subject: [PATCH] added ouput routine for all sections in .ini file no compilation errors, all works \m/ --- main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 6dfdfa4..0dd730c 100644 --- a/main.cpp +++ b/main.cpp @@ -26,8 +26,14 @@ int read_ini(const char* input_file_name) // output all of the items of the input file CSimpleIniA::TNamesDepend sections; - ini.GetAllSections(sections); + CSimpleIniA::TNamesDepend::const_iterator i; + ini.GetAllSections(sections); + for (i = sections.begin(); i != sections.end(); ++i) + { + printf("key-name = '%s'\n", i->pItem); + }; + // CSimpleIniA::TNamesDepend keys; // ini.GetAllKeys("section-name", keys); -- 2.11.4.GIT