registry mechanism in linux
I want to check my software version when ever it satrts
. Is there any facility in linux ,just like
registry in windows to store key for the version
There is no such thing as a registry in the *NIX world. Your options are, either save your version number in the binary, or put it in a config file.
regisrt in linux
How to store in cofig file
how to check in config for the
>> How to store in cofig file
Use your favourite text editor and type it in!
>> how to check in config for the s/w version???
Use fopen() to open the file, fgets() or fread() to read in the lines from the config file and fclose() to close the config file.
If you want to, you can also encrypt the information before storing it into your config file.
Last edited by Scorpions4ever; July 6th, 2003 at 12:50 PM.