Contents Previous Next Subchapters

type - Setting the File Transfer Type
Syntax ftp("type", type name)
See Also: openftp , closeftp , lsftp

Description
Specifies the ftp file transfer type. The character row vector type name must be either "ASCII" or "BINARY". The type "ASCII" should be used when transferring text files and "BINARY" should be used for other files. The default mode is ascii. In binary mode, the file is moved byte-by-byte.

Example
If ftp is not currently linked to O-Matrix, enter the command
     dll dll\ftp.dll, ftp
You can now open a remote connection by entering the command
     ftp("open", "ftp.microsoft.com", "anonymous", "guest")
If O-Matrix responds
     T
the connection was successful. In this case you can copy the file LS-LR.ZIP by entering the commands
     ftp("type", "BINARY")
     ftp("get", "LS-LR.ZIP")
If you then enter the command
     listdir
The file LS-LR.ZIP will be included in the listing for the current O-Matrix working directory.