[Vala] Need help with string

2009-09-02 Thread Nicolas
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.

Re: [Vala] Need help with string

2009-09-02 Thread Matías De la Puente
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

Re: [Vala] Need help with string

2009-09-02 Thread pancake
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) {