I am developing an application which list the data from an xml file, and user can add more entries into this xml file. Later, when this list is again populated, newer entries will be displayed back along with older ones.
My xml file is in my current project folder, & its "BUILD ACTION" is set as "CONTENT"
& "COPY TO OUTPUT DIRECTORY" is "COPY ALWAYS".
Now, when i run the project, this xml file gets copied into "Debug" folder. And then this file in Output directory gets modified and updated and all values are displayed fine.
Now the problem s that, when i restart the project, again this file is copied to Debug folder & all updates are lost....
Kindly suggest ways in which i can use the same file and modify it, so that no change made is lost...
Also, if i specify the name of file as (@"C:\file.xml"), the it show "Object reference not set to an instance of an object" error.
Thanks in advance....