FtpGet is available since version 1.0.
Prototype:
boolean FtpGet(string local_filename, string path, number mode, number connection_handle)
Parameters
local_filename
the local file to store the received data
mode
the ftp mode: FTPLIB_ASCII or FTPLIB_IMAGE
Description:
Issue a GET command and write received data to output.
Return value:
Returns true if succeeded, false if failed.
Example
function TestFtp() {
var con=FtpConnect("ftp.rdsct.ro");
if (!con) {
echo "Can't Connect\n";
return 0;
} else {
echo "Connected !!!\n";
}
FtpLogin("","",con);
iif (!FtpGet("c:\\test.zip","/pub/PPPoE/win98/RASPPPOE_098B.ZIP",FTPLIB_IMAGE,con))
echo "Error getting file\n";
FtpQuit(con);
}