private bool ReadBool(string s, bool defaultVal) { try { return Convert.ToBoolean(s); } catch (FormatException) { return defaultVal; } }