2.1.21.5 ftp_put


Description

Upload a file to an FTP server.

Syntax

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

Parameters

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

Return

zero for success, non-zero for error.

Examples

Remark

See Also

ftp_get, ftp_put_multi

Header to Included

OFTP.h

Reference