I've been trying to implement this example for transferring files over a network (LAN & Internet)
http://www.dotnetspider.com/resource...prime-num.aspx

However, I run the program and it copies the file to my specified directory fine but transfers double the amount of bytes, doubling the file size and thus corrupting the file!

I have searched the net for what I need but can't find any decent tutorials that actually work,

Basically I want to have a server which can accept a connection, then send a particular file back to the user.

I assume I will want to use filestream for my transfers?

I'm still fairly new to C# but not to programming.