Renci.SshNet.SftpClient.AppendText C# (CSharp) 메소드

AppendText() 공개 메소드

Creates a StreamWriter that appends text to an existing file using the specified encoding.
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 AppendText ( string path, Encoding encoding ) : StreamWriter
path string The path to the file to append to.
encoding System.Text.Encoding The character encoding to use.
리턴 System.IO.StreamWriter
        public StreamWriter AppendText(string path, Encoding encoding)
        {
            CheckDisposed();

            if (encoding == null)
                throw new ArgumentNullException("encoding");

            return new StreamWriter(new SftpFileStream(_sftpSession, path, FileMode.Append, FileAccess.Write, (int) _bufferSize), encoding);
        }

Same methods

SftpClient::AppendText ( string path ) : StreamWriter