E
elcorto
Hi
I'm new to the list and I'm coming with a newbie question:
What would be the best way to parse simple (config) files like
config.txt:
keyA=value1, value2, value3, ...
keyB=value1, value2, value3, ...
....
(the value(i) should be converted to long or doulbe)
Up to now I used getopt (together with strtod() and so on for
converting the optarg) but as the input for my program gets more
complicated getopt
is starting to get painful.
Any hints are appreciated.
cheers,
elcorto
I'm new to the list and I'm coming with a newbie question:
What would be the best way to parse simple (config) files like
config.txt:
keyA=value1, value2, value3, ...
keyB=value1, value2, value3, ...
....
(the value(i) should be converted to long or doulbe)
Up to now I used getopt (together with strtod() and so on for
converting the optarg) but as the input for my program gets more
complicated getopt
is starting to get painful.
Any hints are appreciated.
cheers,
elcorto