I want to use a path set in my system variable to read/write data to.
System variable is called "LUCTEST" and has value "C:\Users\Luc" XML is in C:/Users/Luc/test.xml
My code does read the XML OK, but how does it know to choose the test.xml?? Can I specify exactly what the xml should be called if there are multiple in "C:\Users\Luc"
Below is my current code:
   private void Form1_Load(object sender, EventArgs e)
    {
        string path = Environment.GetEnvironmentVariable("LUCTEST",EnvironmentVariableTarget.Machine);
        if (File.Exists(path))
            App.Phonebook.ReadXml(path);
        phonebookBindingSource.DataSource = App.Phonebook;
        panel1.Enabled = false;
    }
