FtpRead is available since version 1.0.
Prototype:
string FtpRead(number size, number stream_handle)
Parameters
size
the amount of data to read in bytes
Description:
Read from a data connection.
Return value:
Returns the data buffer read.
Example
function TestFtp() {
var con=FtpConnect("ftp.rdsct.ro");
if (!con) {
echo "Can't Connect\n";
return 0;
} else {
echo "Connected !!!\n";
}
FtpLogin("","",con);
//if (!FtpGet("c:\\test.zip","/pub/PPPoE/win98/RASPPPOE_098B.ZIP",FTPLIB_IMAGE,con))
// echo "Error getting file\n";
var ftpfile=FtpAccess("/pub/PPPoE/win98/RASPPPOE_098B.ZIP",FTPLIB_FILE_READ,FTPLIB_IMAGE,con);
if (ftpfile) {
echo "File opened !\n";
echo FtpRead(1,ftpfile);
FtpClose(ftpfile);
}
FtpQuit(con);
}