MATLAB Function Reference |
Set FTP transfer type to ASCII
Syntax
Description
ascii(f)
sets the download and upload FTP mode to ASCII, which converts new lines, where f
was created using ftp
. Use this function for text files only, including HTML pages and Rich Text Format (RTF) files.
Examples
Connect to the MathWorks FTP server, and display the FTP object.
tmw=ftp('ftp.mathworks.com');
disp(tmw)
FTP Object
host: ftp.mathworks.com
user: anonymous
dir: /
mode: binary
Note that the FTP object defaults to binary mode.
Use the ascii
function to set the FTP mode to ASCII, and use the disp
function to display the FTP object.
Note that the FTP object is now set to ASCII mode.
See Also
Areaseries Properties | asec |
© 1994-2005 The MathWorks, Inc.