1. I need to download a text file from a server (not sure if it will be a web or file server) and extract the first line of the text file (the text file will actually only have one line). I know the directory and filename of the text file. The server is a Windows 2000 Server.
2. I need to upload a bitmap image to a server (again, not sure if it will be a web or file server). I know where the bitmap image is supposed to be saved. I may have to upload and save the bitmap image with a different filename. The server is a Windows 2000 Server.
What is the best approach to these problems? I’m developing in VB.NET and would like to know if there are HTTP or FTP classes (.NET classes, that is – don’t want to use COM Interop if possible) that I can use to do this. Will a solution a Web Service be advisable? If not, please describe the pros and cons of possible solutions.