public string[] getLevels()
{
if (doc.Root.Attribute("LVLCount") == null)
{
doc.Root.Add(new XAttribute("LVLCount", 1));
}
else
{
doc.Root.Attribute("LVLCount").SetValue(int.Parse(doc.Root.Attribute("LVLCount").Value) + 1);
}
doc.Save(c);
return new DirectoryInfo(lvlDirectory).GetFiles().Where(a => a.Extension == (".js")).Select(a => a.Name.Replace(".js", "")).ToArray();
// return ((XElement)doc.FirstNode).Elements().Select(a => a.FirstAttribute.Value).ToArray();
}