How do I advance an array ?
Tal
talgamma at gmail.com
Sat Nov 18 12:33:42 PST 2006
Hello, I'm new to D, my origin is C++.
I want to search for a value in an ini file. I search for the right section,
e.g. "[D]", and then I want to find the variable, like "variable=", and then
change it's value.
This is how I try to do it:
char[] bfr;
bfr = cast(char[]) read (ini_path);
int i = find (bfr,"[D]");
i = find (bfr+i, "Compilator File=");
Since bfr is "char[]" and i is "int" it's erroneous. However none of my trials
to bypass this type-problem were successful.
How do I do it ?
Thanx in advance,
Tal
More information about the Digitalmars-d
mailing list