Hi,
I need to parse a configuration file , I need to compare the string variable and get the values.

The variable and values are seperated by white spaces,
For example,
TestscenConf.config file contains the following,

SCENARIO_TYPE WIRELESS_TEST

SIMULATION_TIME 200

[1] [IP_ADDR1][1] 192.168.1.0

[2] [IP_ADDR2][1] 192.168.1.2

[2] [IP_ADDR2][2] 192.168.1.3

Here, everything is seperated by space.

I want to compare variable name and get its value.

How can I parse it in C or C++.

Thank you,

Arun