You are here: Start » AVL.NET » AVL.Ftp_ReceiveString Method

AVL.Ftp_ReceiveString Method

Downloads a text string from a remote server using FTP (File Transfer Protocol).

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void Ftp_ReceiveString(
	string inHostName,
	string inFtpFilePath,
	string inUsername,
	string inPassword,
	bool inUsePassiveMode,
	out string outText
)

Parameters

Name Type Range Default Description
inHostNamestring\"ftp://\"URL address of the remote server. Default value: \"ftp://\".
inFtpFilePathstringLocation of the file on a remote server.
inUsernamestringUser name needed to log in. Default value: atl::NIL, or null.
inPasswordstringPassword associated with a user name. Default value: atl::NIL, or null.
inUsePassiveModeboolProtocol communication mode. May be necessary when using a firewall.
outTextstringText read from a remote server.

Errors

Error type Description
DomainError Empty host name on input in Ftp_ReceiveString
DomainError Empty ftp file path on input in Ftp_ReceiveString

See also