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 virtual void DownloadFile(
	string localPath,
	string remoteFile,
	WriteMode writeMode
)
Visual Basic
Public Overridable Sub DownloadFile ( _
	localPath As String, _
	remoteFile As String, _
	writeMode As WriteMode _
)
Visual C++
public:
virtual void DownloadFile(
	String^ localPath, 
	String^ remoteFile, 
	WriteMode writeMode
)

Parameters

localPath
Type: System..::..String
Local file to put data in.
remoteFile
Type: System..::..String
Name of remote file in current working directory.
writeMode
Type: EnterpriseDT.Net.Ftp..::..WriteMode
Overwrite, Append or Resume.

Remarks

Transfers in the current TransferType.

See Also