I need to know how to upload and download files from a webserver.

I have acess to the server, but I need to write and application that would put a file on the server, and then have another application remove it.

If any one can post a little code on how to do this I would appreciate it more than words can say.