I need a routine to pull a binary file from an FTP server (or return an error code) where server ip address, user name, password, file name, location on the server and location on the local PC are parameters.

Anybody got some existing code to do roughly this, to save me time in writing it from scratch?

(No, I'm not lazy, but I'm on a real tight deadline and I've lots of other modules to write. I'll cut and paste anything I can. I'm not proud )