[LC++]Config files
Vincent Penquerc'h
Vincent.Penquerch at artworks.co.uk
Mon Nov 25 20:47:02 UTC 2002
> I'm making a program where I need a config file. Now, I'm hardly the
> first to do that, so I was wondering if there is some
> intelligent way of
> dealing with this, or should I simple make text file, and
> start reading?
Might be overkill, but http://www.tecgraf.puc-rio.br/lua/
Otherwise, if the format is simple, a la "foo=bar", two strtok
calls with separators of newline and '=' should do it.
--
Vincent Penquerc'h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/tuxcpprogramming/attachments/20021125/605b4420/attachment.htm
More information about the tuxCPProgramming
mailing list