Home > OS >  How to read and save the user parameter of Linux development board?
How to read and save the user parameter of Linux development board?

Time:11-11

Equipment has some human-computer interaction interface, users need to save and read at boot time, some of the parameters such as network IP address, device id, the address of the equipment and so forth,
Generally what to do, keep these parameters to a some examples. The conf file, then read on, but read how parameters into the program?
Some parameters are system related parameters such as wifi name, equipment of network address how to write your own program, just begin to do the programming is very confused, there are examples of can send a thank you very much

CodePudding user response:

Parameters can be given to the application first to load on electricity

CodePudding user response:

Reading configuration files, configuration files, in analytical results through there is a need to parameters, it was assigned to the corresponding variable to display; System, the relevant parameters from the system inside to read, and then display, if the user modified the parameters, keep the new parameters to the configuration file,
Can use the conf configuration file format, you can also use ini format, ini format of the configuration file to use some more convenient
  • Related