Example: ftp_get
In the following example, the ftp_get function gets the file ftp_file.txt from the FTP server.
// Logon to the FTP server
ftp_logon ("FTP", "URL=ftp://ftp.microsoft.com", LAST );
// Get a file back from the FTP server
ftp_get ("Get_Files", "SOURCE_PATH=/pub/for_jon/ftp_file.txt", "TARGET_PATH=f:/downloads/ftp_file.txt", "MODE=ASCII", LAST );
// Logout from the FTP server
ftp_logout();