Uploading and Downloading Web Files


Description

This program (DownLoad And Upload file) is for beginner, shows how to use web client class to Download and upload file from the Internet and how to save them to disk. Download  or upload file can be done using Method DownLoad Or UpLoad.

In the sample code, I have used FileStream and StreamWriter to Write file but in these case you have to convert byte to char. I read the file contents in to a array.
I have also used try and catch to catch exceptions. All subroutines are self-explanatory. Enjoy the program.

Requirement: 

.NET SDK Beta 2.


Similar Articles