get (ftp) - Retrieve copy of requested file from target PC

Syntax

MATLAB® command line

get(file_obj,file_name)
file_obj.get(file_name)

Arguments

file_obj

Name of the xpctarget.ftp object.

file_name

Name of a file on the target PC.

Description

Method of xpctarget.ftp objects. Copies the specified filename from the target PC to the current directory of the host PC. file_name must be either a fully qualified filename on the target PC, or located in the current directory of the target PC.

Examples

Retrieve a copy of the file named data.dat from the current directory of the target PC file object f.

get(f,'data.dat') or f.get('data.dat')
ans = data.dat

See Also

xPC Target™ file object methods put.

  


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