public string IniReadValue(string Section, string Key) { StringBuilder stringBuilder = new StringBuilder(255); IniClass.GetPrivateProfileString(Section, Key, "", stringBuilder, 255, this.path); return(stringBuilder.ToString()); }
public string IniReadValue(string Section, string Key, string DefValue) { StringBuilder stringBuilder = new StringBuilder(255); if (IniClass.GetPrivateProfileString(Section, Key, "", stringBuilder, 255, this.path) <= 0) { return(DefValue); } return(stringBuilder.ToString()); }