edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Download a file from the FTP server and save it locally.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public void DownloadFile(
	string localPath,
	string remoteFile,
	TransferParameters transferParams
)
Visual Basic
Public Sub DownloadFile ( _
	localPath As String, _
	remoteFile As String, _
	transferParams As TransferParameters _
)
Visual C++
public:
void DownloadFile(
	String^ localPath, 
	String^ remoteFile, 
	TransferParameters^ transferParams
)

Parameters

localPath
Type: System..::..String
Local file to put data in.
remoteFile
Type: System..::..String
Name of remote file in current working directory.
transferParams
Type: EnterpriseDT.Net.Ftp..::..TransferParameters
Additional transfer parameters

Remarks

Transfers in the current [!:TransferType].

See Also