Click or drag to resize

SftpClientReadLines(String, Encoding) Method

Read the lines of a file that has a specified encoding.

Namespace: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public IEnumerable<string> ReadLines(
	string path,
	Encoding encoding
)

Parameters

path  String
The file to read.
encoding  Encoding
The encoding that is applied to the contents of the file.

Return Value

IEnumerableString
The lines of the file.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also