as you properly know, ini files don't support sections arrays.
If you know all items at compile time, you could create structs
for all of them, but that is properly not what you're looking for.
On Saturday, 20 December 2014 at 08:09:06 UTC, Joel wrote:
On Monday, 13 October 2014 at 16:06:42 UTC, Robert burner
Schadek wrote:
On Saturday, 11 October 2014 at 22:38:20 UTC, Joel wrote:
On Thursday, 11 September 2014 at 10:49:48 UTC, Robert burner
Schadek wrote:
some self promo:
On Monday, 22 December 2014 at 11:04:10 UTC, Robert burner
Schadek wrote:
On Saturday, 20 December 2014 at 08:09:06 UTC, Joel wrote:
On Monday, 13 October 2014 at 16:06:42 UTC, Robert burner
Schadek wrote:
On Saturday, 11 October 2014 at 22:38:20 UTC, Joel wrote:
On Thursday, 11 September 2014
On Monday, 13 October 2014 at 16:06:42 UTC, Robert burner Schadek
wrote:
On Saturday, 11 October 2014 at 22:38:20 UTC, Joel wrote:
On Thursday, 11 September 2014 at 10:49:48 UTC, Robert burner
Schadek wrote:
some self promo:
http://code.dlang.org/packages/inifiled
I would like an example?
On Saturday, 11 October 2014 at 22:38:20 UTC, Joel wrote:
On Thursday, 11 September 2014 at 10:49:48 UTC, Robert burner
Schadek wrote:
some self promo:
http://code.dlang.org/packages/inifiled
I would like an example?
go to the link and scroll down a page
On Thursday, 11 September 2014 at 10:49:48 UTC, Robert burner
Schadek wrote:
some self promo:
http://code.dlang.org/packages/inifiled
I would like an example?
On Monday, 8 September 2014 at 06:32:52 UTC, Joel wrote:
Is there any ini library that works in OSX?
I've tried the ones I found. I think they have the same issue.
Joels-MacBook-Pro:ChrisMill joelcnz$ dmd ini -unittest
ini.d(330): Error: cannot pass dynamic arrays to extern(C)
vararg
Or this one: http://dpaste.dzfl.pl/1b29ef20#
On Tuesday, 9 September 2014 at 08:57:30 UTC, Dejan Lekic wrote:
Or this one: http://dpaste.dzfl.pl/1b29ef20#
Thanks Dejan Lekic, I'll look them up.
How do you use this ini file parser?
-
http://dpaste.dzfl.pl/1b29ef20
module rangeini;
import std.stdio: File, writeln;
import std.range;
import std.algorithm: canFind;
import std.string: strip, splitLines;
import std.traits: Unqual;
import std.conv: text;
struct ConfigItem {
Here's a failed attempt of mine - after the line. I would usually
have stuff like the following (right next):
Ini ini;
ini=new Ini( cfg );
ini[section][key] = value;
---
import ini;
void main() {
import std.conv;
//load
string data;
int i;
Is there any ini library that works in OSX?
I've tried the ones I found. I think they have the same issue.
Joels-MacBook-Pro:ChrisMill joelcnz$ dmd ini -unittest
ini.d(330): Error: cannot pass dynamic arrays to extern(C) vararg
functions
ini.d(387): Error: undefined identifier 'replace', did
12 matches
Mail list logo