Bilgin Kılıç
Bilgin Kılıç

Reputation: 9119

copy an xml file then save it

the source file: http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml

I want to save as this file as "eurofxref-daily-yesterday.xml" under the wwwroot directory..

using c#.. how can I do that ?

Upvotes: 0

Views: 621

Answers (1)

Jonathan S.
Jonathan S.

Reputation: 541

Have a look here http://www.c-sharpcorner.com/UploadFile/mahesh/WebRequestNResponseMDB12012005232323PM/WebRequestNResponseMDB.aspx

you can fetch the file and then read the data into memory then write it out to a fil on your server.

Upvotes: 1

Related Questions