i'm struggling with this.

Firstly, is it best to open the file in rb and send it across in binary?

Secondly, what way would i work it do i loop and read chunks for the file at a time and then send them to the remote client

if i do that how do i make sure i dont just read the same part of the file over and over, i.e how do i make sure the second read call reads the next block of info.

also how do i test if the file has been completely read?