Exemplo n.º 1
0
        public static IniConfig ReadConfigFrom(string filePath)
        {
            if (!File.Exists(filePath))
            {
                return(null);
            }
            string text = File.ReadAllText(filePath);

            if (string.IsNullOrEmpty(text))
            {
                return(null);
            }

            IniConfig config = new IniConfig();

            config.ParseText(text);

            return(config);
        }
Exemplo n.º 2
0
 public void SetConfigText(string configText)
 {
     config = new IniConfig();
     config.ParseText(configText);
 }