[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Confuse-devel] how to delete a section of the configuration file

From: Keith Mendoza
Subject: Re: [Confuse-devel] how to delete a section of the configuration file
Date: Fri, 18 Sep 2009 05:32:20 -0700


It is generally not a good practice for an application to modify a configuration file that it reads. The only reason I personally would use the printing function that confuse provides is for debugging purposes; even then I would still just have the appropriate values be printed out in debug statements.

But to answer your question, the quickest thing I can think of doing this is to simply traverse the cfg_opt_t pointer and not write the section you want to leave out.


On Sep 16, 2009 11:25 PM, <address@hidden> wrote:

 after read and write the configuration file, i need to delete one section,
but it seems the libconfuse didn't provide any function to do this, is there anyone who knows how can i delete a section of the configuration file, thank you

best regards


Confuse-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]