Is this some kind of INI file for configurations ? If so, there are cleaner approaches to it like XML or the GetPrivateProfileString family of APIs.