Renci.SshNet.SftpClient.AppendAllText C# (CSharp) Method

AppendAllText() public method

Appends the specified string to the file, and closes the file.
is null. -or- is null. -or- is null. Client is not connected. was not found on the remote host. The method was called after the client was disposed.
public AppendAllText ( string path, string contents, Encoding encoding ) : void
path string The file to append the specified string to.
contents string The string to append to the file.
encoding System.Text.Encoding The character encoding to use.
return void
        public void AppendAllText(string path, string contents, Encoding encoding)
        {
            using (var stream = AppendText(path, encoding))
            {
                stream.Write(contents);
            }
        }

Same methods

SftpClient::AppendAllText ( string path, string contents ) : void