Getting a String Value from the Initialization File

The josIniFileGetString call, shown in the following example, obtains the current value of the String key in the specified section of the JADE initialization file.

int josIniFileGetString(const Character * pIniFileName,
                        const Character * pSection,
                        const Character * pKey,
                        const Character * pDefault,
                        Character       * pValue,
                        Size              size);

The parameters for this call are listed in the following table.

Parameter Description
pIniFileName Name of the JADE initialization file
pSection Name of the section in the JADE initialization file
pKey Name of the String key in the JADE initialization file section
pDefault String default value for the specified String key if the key cannot be found in the initialization file
pValue Address of a Character buffer into which the requested string value from the initialization file is placed
size Size of the Character buffer to which the pValue parameter points, defined in characters