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. 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 ) : void
path string The file to append the specified string to.
contents string The string to append to the file.
return void
        public void AppendAllText(string path, string contents)
        {
            using (var stream = AppendText(path))
            {
                stream.Write(contents);
            }
        }

Same methods

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