Accessing and reading/writing files on a web server
I am looking to read/write files on my website from c# and im wondering how i would go about doing this.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Gomathi PalaniswamyPosted Nov 11, 2010, 11:55 PM
Use Httpwebrequest and WebResponse to get page content like,
HttpWebRequest requst = (HttpWebRequest)WebRequest.Create(URL);
WebResponse response = requst.GetResponse();
Use Stream reader and writer to read and write the file..