0
Reply

TreeView and array

trond 0

trond 0

Oct 22 2004 9:52 AM
1.8k
I have a problem on my hand that i am struggling with. I have this XML file: 11 Account 12 General 23 Testing I would like to be able to get the into an array (Account, General, Testing). Then i want to use the method below to generate Folders (Account, General, Testing). : public static void CreateDirectory(string directory) { string path = @"Logfiles\" + directory; try { // Determine whether the directory exists. if (!Directory.Exists(path)) { // Create the directory it does not exist. Directory.CreateDirectory(path); } } catch (Exception e) { MessageBox.Show("Creating directory failed: {0}", e.ToString()); } finally {} } Any hint that can help a newbee out? Best regards Trond