Can we delete a file from the Server?

 Posted by Chvrsri on 2/27/2012 | Category: C# Interview questions | Views: 2398 | Points: 40
Answer:

Yes we can delete a file located at the server side. That can be done using this simple step :

System.IO.File.Delete(Server.MapPath("MyFile.txt"));


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response