Hi,
I am using C language and Linux as my programming platform.
In my sample application. I want to get and set the value of a custom configuration file. Below is the structure of my config file.
idlevalue=5
sleeping=1
Now my problem is I am getting a hard time thinking how to implement the set functionality in my application.
I am planning to get all the contents of the file. Then set the position of the pointer in the specific value then change the value. Then write all the data into the file again.
It seem setting a value in the config file is much harder than getting.
Please advice.