Delete a file on the server within a web application

P

Paul

Hi just wondering if anyone knows how to delete a file on the server from a
web app, using c# vs2005, thanks.
 
P

Paul

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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top