put - Copy file from host PC to target PC

Syntax

MATLAB® command line

put(file_obj,file_name)
file_obj.put(file_name)

Arguments

file_obj

Name of the xpctarget.ftp object.

file_name

Name of the file to copy to the target PC.

Description

Method of xpctarget.ftp objects. Copies a file from the host PC to the target PC. file_name must be a file in the current directory of the host PC. The method writes file_name to the target PC disk.

put might be slower than the get operation for the same file. This is expected behavior.

Examples

Copy the file data2.dat from the current directory of the host PC to the current directory of the target PC FTP object f.

put(f,'data2.dat')  

or

fsys.put('data2.dat')

See Also

xPC Target™ file object methods dir and get (ftp).

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS