Here's the story...

I'm using a function which implements GetPrivateProfileString to read values from an INI file. Now, this function requires a value for strApplicationname, which is basically the section of the INI File to read the value from. This is marked in the INI File by "[AppName]".

Now my problem is that the INI files I want to read from do not have such a marking, there are just values with no section header.

Does anyone have any idea how I can read values from an INI File without specifying the AppName, or at least how I can insert a null value into a string ("" is no good, this looks for a section called []).

TIA