public static ReadString ( string section, string key ) : string | ||
section | string | The section of the .ini file |
key | string | A key name in the .ini file |
return | string |
public static string ReadString(string section, string key)
{
if (_filename != null)
{
_buffer.Clear();
NativeMethods.GetPrivateProfileString(section, key, "", _buffer, 256, _filename);
return _buffer.ToString();
}
return "";
}