Worst piece of code I have ever seen?

Settings.dsConfig.Load ("ThisApplication.exe.config");
System.Xml.XmlNodeList configNodes = Settings.dsConfig.GetElementsByTagName("Variables");
Settings.location = configNodes[0].ChildNodes[2].InnerText;
Settings.filename = configNodes[0].ChildNodes[0].InnerText;
Settings.exportnum = configNodes[0].ChildNodes[1].InnerText;
Settings.filenum = int.Parse(Settings.exportnum);
Advertisements