Delete a file on the server within a web application

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Hi just wondering if anyone knows how to delete a file on the server from a
web app, using c# vs2005, thanks.
 
ok thanks, will use a google search first for simple questions like this one.
I ended up using
FileInfo filename = new FileInfo(directpath);
filename.Delete();
Paul G
Software engineer.


Juan T. Llibre said:
That question is asked at least 4 times a month here.

Please do, at least, a minimal Google search before you post any question :

Here's the Google search. The first link returns the answer to your question.
http://www.google.com/search?hl=en&q="delete+a+file"+"c#+"asp.net"




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
Back
Top