February 24th, 2009
Today I needed to automate posting some data to a web form from a C# program, and sure enough this is not at all that difficult. But surprisingly you need to call quite a large number of methods to get your data ready to ship. A working code example only took a few minutes to write but it took quite a bit more time to clean things up. You can find the full implementation at the end of this post.
Read the rest of this entry »
Tags: c#, networking
Posted in Beginner, Learn C# | 8 Comments - getting there! »
February 23rd, 2009
Your C# program has just calculated the weekly sales report and you need to upload it to the company file server. The C# System.Net.Webclient class makes this quite trivial. The same for downloading a file from the server and then parsing it for content. This post shows how you can use basic FTP actions to upload, download files and either store them in memory or write them to disk.
At the end of this post you will find my BasicFTPClient class that implements the uploading and downloading code.
Read the rest of this entry »
Tags: networking
Posted in Beginner, Learn C# | 1 Comment already!»