Getting a Boolean Value from the Initialization File

The josIniFileGetBoolean call, shown in the following example, obtains the current value of a Boolean key in the specified section of the JADE initialization file.

int josIniFileGetBoolean(const Character * pIniFileName,
                         const Character * pSection,
                         const Character * pKey,
                         bool              bDefault,
                         bool &            bValue);

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 Boolean key in the JADE initialization file section
bDefault Boolean default value for the specified key if the key cannot be found in the initialization file
bValue Requested Boolean value from the initialization file