Read the lines of a file that has a specified encoding.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
public IEnumerable<string> ReadLines( string path, Encoding encoding )
Parameters
- path
- Type:
System String
The file to read.
- encoding
- Type:
System.Text Encoding
The encoding that is applied to the contents of the file.
Return Value
The lines of the file.Exceptions
| Exception | Condition |
|---|---|
| path is null. |
See Also