Satds
Satds

Reputation: 21

Save method of XDocument: into which directory will it be saved?

I am using the lines below in the web service to see the XML which we send to another party:

XDocument doc;

doc.Save("san.xml");

In which directory can I find the san.xml file?

Upvotes: 1

Views: 90

Answers (1)

Jonathan Camilleri
Jonathan Camilleri

Reputation: 631

When saving a file in c#, if no directory is specified, the application writes to the running directory, which is normally where the application is.

Upvotes: 2

Related Questions