Example: ftp_put_ex

In the following example, the ftp_put_ex function places the file ftp_file.txt in the directory /testFiles.

    FTP pFTP; 
    // Login to the FTP server 
    ftp_logon_ex (&pFTP, "FTP", "URL=ftp://ftp.mycompany.com",LAST );
    // Send the file "ftp_file.txt" to the /testFiles directory. 
    ftp_put_ex (&pFTP, "Ftp_Put", "PATH=/testFiles",LAST );
    // Logout from the FTP server 
    ftp_logout_ex(&pFTP);