Ubuntu Manpages

FtpGet

Retreive a file from the remote system.

#include <ftplib.h>

int FtpGet(const char *output, const char *path,

char mode, netbuf *nControl);

Name of a local file to receive the contents of the remote file.
Name of remote file to be retrieved.
Specifies the transfer mode as FTPLIB_ASCII or FTPLIB_IMAGE.
A handle returned by FtpConnect().

FtpGet() copies the contents of a remote file to a local file.

Returns 1 if successful or 0 on error.