SftpClient ReadAllText Method (String, Encoding)SSH .NET Client Library Documentation
Opens a file, reads all lines of the file with the specified encoding, and then closes the file.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public string ReadAllText(
	string path,
	Encoding encoding
)

Return Value

A string containing all lines of the file.
Exceptions

See Also