J Mangual wrote:how do i copy files over a network using a socket? I have something written but I hard-code the file size.
Well, you will need to design a protocol between the two sides -- maybe the sender can send the filename and filesize, prior to sending the bytes of the file.