2.1.21.4 ftp_get


Description

Download a file from an FTP server.

Syntax

int ftp_get( OFTPLOGIN * ftpLogin, LPCSTR pcszRemoteFile, LPCSTR pcszLocalFile, bool bBinary = true )

Parameters

ftpLogin
[input] an OFTPLOGIN structure.
pcszRemoteFile
[input] name of file to be downloaded
pcszLocalFile
[input] path and name of target file
bBinary
[input] upload using binary mode or ASCII mode

Return

zero for success, non-zero for error.

Examples

Remark

See Also

ftp_put

Header to Included

OFTP.h

Reference