Example: ftp_put

In the following example, the ftp_put function sends the file ftp_file.txt to the FTP server.

    // Login to the FTP server 
    ftp_logon ("FTP", "URL=ftp://ftp.microsoft.com",LAST );
    // Transfers and places the file "ftp_file.txt" in the /testFiles directory. 
    ftp_put ("Ftp_Put", "SOURCE_PATH=/testFiles",LAST );
    // Logout from the FTP server 
    ftp_logout();