Downloading from and Uploading text files to a server

I have a duplicator that is finished except for downloading text files from a server and uploading text files to the server and this is where I am stuck. I have no idea how to accomplish this, any help would be appreciated.