You are here: Start » AVL.NET » AVL.Ftp_ReceiveString(string, string, string, string, bool, string)

AVL.Ftp_ReceiveString(string, string, string, string, bool, string)

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

inHostName
Type: System.String
URL address of the remote server.
inFtpFilePath
Type: System.String
Location of the file on a remote server.
inUsername
Type: System.String
User name needed to log in, or null.
inPassword
Type: System.String
Password associated with a user name, or null.
inUsePassiveMode
Type: System.Boolean
Protocol communication mode. May be necessary when using a firewall.
outText
Type: System.String
Text 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