Click or drag to resize

SftpClientReadAllText(String) Method

Opens a text file, reads all lines of the file, and then closes the file.

Namespace: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public string ReadAllText(
	string path
)

Parameters

path  String
The file to open for reading.

Return Value

String
A string containing all 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