Click to See Complete Forum and Search --> : Getting a copy of file and saving it as a different file name


MathewJose
June 7th, 2007, 07:19 AM
Hello everybody,

In my asp.net c# application ,i have an xml file named Question.xml.With a set of questions.When a user enters data ,a copy of Question.xml has to be created ,where users enter answer to corresponding question and saved as a new xml,say username.xml.

How toget the copy of a file and save it in a different name?

Thanks alot in advance!

mcmcom
June 7th, 2007, 03:34 PM
you can load the XMl Document into memory and use XmlDocument.Save method to save it as a different file name (i think)

heres a link to MSDN about that method.
http://msdn2.microsoft.com/en-us/library/aa335928(VS.71).aspx

hth,
mcm