Hi, I'm trying to use the XmlTextWriter class in C# but it only works if I give the complete path to the file (as in "C:\file.xml"). If I try to use relative path (as in "file.xml"), it creates the file (in the same folder that contais the cs file) but it doesn't show any contents. Is there any property in the project tree in VS I have to set so that the file is updated everytime I run the program?
Some code to help:
If I do:
XmlTextWriter f = new XmlTextWriter("C:/file.xml", null);
it works.
But if I try to use a file that is included in the project ,like this:
XmlTextWriter f = new XmlTextWriter("file.xml", null);
it doesn't work. The file remains empty.
Thnaks in advance.