On Wed, Feb 09, 2011 at 11:29:31AM +0000, Connor Lane Smith wrote: > On 9 February 2011 11:19, Nick <suckless-...@njw.me.uk> wrote: > > So, what's a good, simple format to store config files? > > Obviously XML is pretty gross. So, what do people here tend > > to do? > > If your options are fairly simple (i.e., no nested structures etc), > you could just make the config file valid shell: > > > key1=value1 > > key2=value2 > > Trivial to parse in C, and you can pull the config into your script with: > > > . config
Aah yes, brilliant, thanks. I hadn't considered just using a shell format, but it makes a lot of sense. Nick