Contents Previous Next Subchapters

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

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.

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", "", "anonymous", "guest")
If O-Matrix responds
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
The file LS-LR.ZIP will be included in the listing for the current O-Matrix working directory.