P
pgodfrin
Greetings,
I'm looking to have an input file that has keyword=value pairs. I've
been moving along the "roll your own" path, but I am looking for a
little guidance to the most effective way. The input file will have a
series of parameters, like:
name=foobar
city=london
car=sedan
I was thinking that the rest of the program would setup a hash, where
the lvalue is the key and the rvalue is the value, which I think makes
sense. I thought I could also have a list of "required" keys and
"optional" keys to aid in processing.
So - anyone have some suggestions on a good way to read the input file
of pairs?
regards,
phil
I'm looking to have an input file that has keyword=value pairs. I've
been moving along the "roll your own" path, but I am looking for a
little guidance to the most effective way. The input file will have a
series of parameters, like:
name=foobar
city=london
car=sedan
I was thinking that the rest of the program would setup a hash, where
the lvalue is the key and the rvalue is the value, which I think makes
sense. I thought I could also have a list of "required" keys and
"optional" keys to aid in processing.
So - anyone have some suggestions on a good way to read the input file
of pairs?
regards,
phil