Ejemplo n.º 1
0
        public ArrayList GetSectionNames()
        {
            ArrayList arrayLists;

            try
            {
                byte[] numArray = new byte[0x8000];
                IniReader.GetPrivateProfileSectionNames(numArray, 0x8000, this.Filename);
                char[]   chrArray  = new char[1];
                char[]   chrArray1 = new char[1];
                string[] strArrays = Encoding.ASCII.GetString(numArray).Trim(chrArray).Split(chrArray1);
                arrayLists = new ArrayList(strArrays);
            }
            catch
            {
                return(null);
            }
            return(arrayLists);
        }
Ejemplo n.º 2
0
 public bool DeleteSection(string section)
 {
     return(IniReader.WritePrivateProfileSection(section, null, this.Filename) != 0);
 }
Ejemplo n.º 3
0
 public bool Write(string section, string key, string value)
 {
     return(IniReader.WritePrivateProfileString(section, key, value, this.Filename) != 0);
 }
Ejemplo n.º 4
0
 public bool DeleteKey(string key)
 {
     return(IniReader.WritePrivateProfileString(this.Section, key, null, this.Filename) != 0);
 }
Ejemplo n.º 5
0
 public int ReadInteger(string section, string key, int defVal)
 {
     return(IniReader.GetPrivateProfileInt(section, key, defVal, this.Filename));
 }