RE: Parsing .conf file

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

 




I suppose the easiest would be to look at the XFree86 source code and see how they're parsing it. The other way would be to read each line at a time, say with getline(buf, fh) or fh.getline(buf), then look at each word. If the first word is "section", just look at the next word between quotes. If it's "Files" then you're there.


>Hello to evertybody,
>
>I am searching a way to find the Section "Files" in XF86Config in
>C++ and to add some lines there.Can somebody tell me some way of
>doing this or some libraries that I can use ?
>
>Thanks
>_______________________________________________
>gnome-list mailing list
>gnome-list@xxxxxxxxx
>http://mail.gnome.org/mailman/listinfo/gnome-list


_________________________________________________________________
Test your ?Travel Quotient? and get the chance to win your dream trip! http://travel.msn.com


_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list

[Index of Archives]     [Fedora Desktop]     [Trinity Users]     [KDE]     [Gimp]     [Yosemite News]

  Powered by Linux