A1VBCode Forums

File path in XML


http://www.a1vbcode.com/vbforums/Topic26360.aspx

By shers - 11/24/2008

Hi all,

I'm creating a progam in C# that reads a file location at start up and displays the parent folders in a combo box. This file location may change in future. So I intend to keep this in an xml file and allow the user to change it when needed. But how do I go about it? I have not done any coding with xml yet. So, please help.

Thanks

By shers - 1/11/2009

string path = Properties.Settings.Default.ParentPath;
DirectoryInfo di =new DirectoryInfo(path);

Gives error that says 'Illegal characters in path.'

Thanks