Re: [Vala] Need help with string



Hi Matías,

Thanks for your response, i will try tomorrow.
But my file is not like this :

[INFO]
test=yes
test=no

but like this :

[INFO]
 blah bla here
      blah blah there
blah blah again

Do you think it can be work with GLib.KeyFile ?

Nicolas.


2009/9/2 Nicolas <c r n a wanadoo fr <mailto:c r n a 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 KeyFile http://references.valadoc.org/glib-2.0/GLib.KeyFile.html

I hope it help
    Thank you so much in advance,
    Nicolas.


    _______________________________________________
    Vala-list mailing list
    Vala-list gnome org <mailto:Vala-list gnome org>
    http://mail.gnome.org/mailman/listinfo/vala-list








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]