Adding resume capability to a C# application

Hi,

How should the parameters nStartPosLo and nStartPosHi in the DownloadFile function, be set while using the sfFTPLib.dll component in a C# application? Assuming we can retrive the position at which file transfer was stopped so do we provide that byte value or is there some other method?

Use the GetFileSize() function to get the size of the remote file. Then pass the values to the nStartPosLo and nStartPosHi arguments of the DownloadFile function.

Regards,
Mat