yup it is indeed an ini file... i will try looking into it... thanks
________________________________ From: Tamas Marki <[email protected]> To: [email protected] Sent: Tuesday, February 10, 2009 23:31:35 Subject: Re: [c-prog] parsing a file On Tue, Feb 10, 2009 at 4:17 PM, Tyler Littlefield <ty...@tysdomain. com> 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 WritePrivateProfile String and GetPrivateProfileSt ring 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 Get your preferred Email name! Now you can @ymail.com and @rocketmail.com. http://mail.promotions.yahoo.com/newdomains/aa/ [Non-text portions of this message have been removed]
