FTPReceiveFile

This method receives the specified file from the host using FTP file transfer.


Syntax

FlexSession.FTPReceiveFile(LocalFileName, HostFileName, FlexFileType, [Scheme])


Parameters


LocalFileName

String, input



The full path and name of the local file to transfer.


HostFileName

String, input



The name of the host file.


FlexFileType

FlexTerm parameter, input



Specify text or binary format for transfer using the format FlexFileType.Text or FlexFileType.Binary


Scheme

String, input, optional



Optionally specify the file transfer scheme (FTP server settings) to use. If not specified, the current FlexTerm session FTP settings will be used.

Example

Sub Main()

Ok = FlexSession.FTPReceiveFile("C:\Users\Public\MyFile.txt", "MyFile.txt", FlexFileType.Text, "MyFTP.atf")

End Sub