Exemplo n.º 1
0
        public string IniReadValue(string Section, string Key)
        {
            StringBuilder stringBuilder = new StringBuilder(255);

            IniClass.GetPrivateProfileString(Section, Key, "", stringBuilder, 255, this.path);
            return(stringBuilder.ToString());
        }
Exemplo n.º 2
0
        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());
        }