Documentation Center

  • Trial Software
  • Product Updates

ascii

Class: FTP

Set FTP transfer type to ASCII

Syntax

ascii(ftpobj)

Description

ascii(ftpobj) sets the download and upload FTP mode to ASCII, which converts new line characters. Use this method only for text files, including HTML pages and Rich Text Format (RTF) files.

Input Arguments

ftpobj

FTP object created by ftp.

Examples

Connect to the MathWorks® FTP server, and switch from binary (default) to ASCII mode:

mw=ftp('ftp.mathworks.com');
ascii(mw)

See Also

|

Was this topic helpful?