raup-tier
Joined: 12 Jul 2008 Posts: 15 Location: Germany
|
Posted: Sat May 08, 2010 1:35 pm Post subject: libconfig wrapper |
|
|
Hi,
i've done a wrapper arounde the libconfig-C-API for easy use
in D.
libconfig is realy a nice and fast tool if you have a little bit more and
complex to configure
Example:
main.d
Code: |
module main;
import tango.io.Stdout;
import Config;
int main( char[][] args ) {
Config conf = new Config();
conf.read( "test.cfg" );
char[] str = cast( char[] ) conf.lookup( "f" );
Stdout( str ).newline();
return 0;
}
|
test.cfg
|
|