SFTP Object
 
Syntax
 
SFTP.WriteFileText(handle As String, charset As String, textData As String) As Long
 
Description
Appends character data to an open file. The handle is a file handle returned by the OpenFile method. charset is a character encoding and is typically set to values such as "ansi", "utf-8", "windows-1252", etc. A list of supported character encodings is found on this page: Supported Charsets.
 
Note: It is necessary to specify the character encoding because in many programming languages, strings are represented as Unicode (2 bytes/char) and in most cases one does not wish to write Unicode chars to a text file (although it is possible by setting charset = "Unicode").
 
Returns 1 for success, 0 for failure.
 
See Also