示例#1
0
        public string Read(string section, string key)
        {
            StringBuilder sb = new StringBuilder(IniConfigFile.bufSize);

            IniConfigFile.GetPrivateProfileString(section, key, String.Empty, sb, IniConfigFile.bufSize, this.path);
            return(sb.ToString());
        }
示例#2
0
 public void Write(string section, string key, string val)
 {
     IniConfigFile.WritePrivateProfileString(section, key, val, this.path);
 }