Hi,
I try to make a little program who read in a file and take only some
informations (like an .ini file).
My text file is like this:
[INFO]
blah
blah blah
blah blah blah
Could someone tell me how to create this kind of function ?
Thank you so much in advance,
Nicolas.
2009/9/2 Nicolas c.r@wanadoo.fr
Hi,
I try to make a little program who read in a file and take only some
informations (like an .ini file).
My text file is like this:
[INFO]
blah
blah blah
blah blah blah
Could someone tell me how to create this kind of function ?
You should use
using GLib;
public static void main(string[] args)
{
KeyFile kf = new KeyFile();
try {
kf.load_from_file(test.ini, KeyFileFlags.NONE);
stdout.printf(== file0=%s\n,
kf.get_value(LastFiles, file0));
} catch (FileError err) {