BF2Statistics.StatsPythonConfig.StatsPythonConfig C# (CSharp) Method

StatsPythonConfig() public method

public StatsPythonConfig ( ) : System
return System
        public StatsPythonConfig()
        {
            // Create our file object
            SettingsFile = new FileInfo(Path.Combine(Program.Config.ServerPath, "python", "bf2", "BF2StatisticsConfig.py"));

            // Fetch file contents for parsing
            using (Stream Str = SettingsFile.Open(FileMode.Open, FileAccess.ReadWrite, FileShare.Read))
            using (StreamReader Rdr = new StreamReader(Str))
                FileContents = Rdr.ReadToEnd();

            // Load the config values into the objects variables
            ParseSettings();
        }