|
Summary
Set transfer type to ASCII file transfer.
Syntax
Description
The Ascii method sets the file transfer type to ASCII. That is, the server converts carriage return (CR) and line feed (LF) pairs to line feeds during put or append operations and line feeds
are expanded into carriage return and line feed pairs during get operations. The ASCII mode conversion is normally used to convert text files to a format suitable for text editors on the destination
machine.
The Ascii method takes no parameters and returns a boolean. If the transfer type can be successfully set to ASCII type file transfer, then the method returns True; otherwise, it returns False. The
application should ensure that the method was successfully executed by checking the return value. The method also sets the LastResult property. The value of the LastResult property can be checked to
determine if any error occurred.
Calling this method is equivalent to setting the TransferType property to TRANSFER_TYPE_ASCII.
This method can be called at any time except during a file transfer.
Example
Result = FTPClient.Ascii ()
|