I need to write a function in C# that checks if an XML file exists at a certain path. If the file exists I need to append child nodes(person) to the XML file and save it. If it doesn't exists, I need to create The XML file , then append the child nodes(person) to this and save it. I will later load the XML file using another form that contains a DataGrid so the file can be viewed in a grid style layout. How would I write a function to do this? The part 2 of this question I will put in a separate question as far as loading the DataGrid. After a solution is found to this one. Thanks for any help in advance.
<Family> // root
<address> 542 bell south</address>
<address> 508 bell south</address>