Back to FabImage Library website
You are here: Start » Function Reference » System » FTP » Ftp_SendString

Ftp_SendString
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Sends a string to a remote serve using FTP (File Transfer Protocol).
Syntax
C++
C#
void fil::Ftp_SendString ( const ftl::String& inText, const ftl::String& inHostName, const ftl::String& inDestinationFileName, ftl::Optional<const ftl::String&> inUsername, ftl::Optional<const ftl::String&> inPassword, bool inUsePassiveMode )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inText | const String& | Text to send | |
![]() |
inHostName | const String& | \"ftp://\" | URL address of the remote server. |
![]() |
inDestinationFileName | const String& | Path where a text file should be saved on a remote server. | |
![]() |
inUsername | Optional<const String&> | NIL | User name needed to log in. |
![]() |
inPassword | Optional<const String&> | NIL | Password associated with a user name. |
![]() |
inUsePassiveMode | bool | Protocol communication mode. May be necessary when using a firewall. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty destination file name on input in Ftp_SendString |
DomainError | Empty host name on input in Ftp_SendString |