I am using XMLWriter to create a XML structure on a ConsoleApplication in C#. When I run it inside VisualStudio works, but the problem comes when I run it from Windows Command (cmd).
I have copied in another directory, but it does not create "numberOfHouses.txt".
XmlWriterSettings settings = new XmlWriterSettings();
settings.Indent = true;
settings.OmitXmlDeclaration = true;
XmlWriter writer = XmlWriter.Create("numberOfHouses.txt", settings);
writer.WriteStartElement("CITY");
writer.WriteElementString("HOUSES","12");
writer.WriteEndElement();
writer.Close();
Any suggestion?
thanks