public string GetTextPath() { string tempPath = ""; string[] splitPath = Path.Split(".".ToCharArray()); for (int i = 1; i < Level; i++) { tempPath += new Document(int.Parse(splitPath[i])).Text + "/"; } if (tempPath.Length > 0) tempPath = tempPath.Substring(0, tempPath.Length - 1); return tempPath; }