SftpClientReadAllLines(String, Encoding) Method |
Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
Namespace: Crestron.SimplSharp.SshAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic string[] ReadAllLines(
string path,
Encoding encoding
)
Parameters
- path String
- The file to open for reading.
- encoding Encoding
- The encoding applied to the contents of the file.
Return Value
StringA string array containing all lines of the file.
ExceptionsVersion Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also