A simple .ini file interface.

Dependents:   Smart-WiFly-WebServer SignalGenerator WattEye X10Svr

Revision:
5:bfeb0882bd82
Parent:
0:ae5bf432c249
Child:
6:cd28ab597256
--- a/IniManager.h	Sun Mar 16 22:23:11 2014 +0000
+++ b/IniManager.h	Wed Mar 26 11:20:18 2014 +0000
@@ -35,7 +35,7 @@
     *       a private copy of the filename. Be sure that this parameter
     *       has the right path prefix based on what file system you have.
     */
-    INI(const char * file);
+    INI(const char * file = NULL);
 
     /** destructor for the ini manager.
     *
@@ -43,6 +43,16 @@
     */
     ~INI(void);
 
+    /** set the file to use
+    *
+    * If not set at the time of construction, or if a change is needed, this
+    * API can be used.
+    *
+    * @param file is the filename to manage.
+    * @returns true if success, false if memory could not be allocated.
+    */
+    bool SetFile(const char * file);
+
     /** Read a string from the ini file - if it exists.
     *
     * This searches the ini file for the named section and key and if found it will