public static void XmlCreate() { const string xmlcontent = "<?xml version=\"1.0\"?>\r\n<List>\r\n</List>"; TextWriter newfile = new StreamWriter(Settings.Default.cfgpath); newfile.Write(xmlcontent); newfile.Close(); }