On Tue, Feb 10, 2009 at 4:17 PM, Tyler Littlefield <[email protected]> wrote:
> hello,
> Your best bet might be to read the whole file, and then use a regex on it.

"Some people, when confronted with a problem, think "I know, I'll use
regular expressions." Now they have two problems." :D

To the OP: this looks like an .ini file you are trying to manipulate.
Under Windows you have Win32-specific functions to make .ini file
manipulation very easy. You will want to check out the
WritePrivateProfileString and GetPrivateProfileString functions.

If you're under Linux, then you can use a third-party library to
manipulate the file (I know Qt supports it, but that might be
overkill).

-- 
Tamas Marki

Reply via email to