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