SftpClientReadAllBytes Method |
Opens a binary file, reads the contents of the file into a byte array, and then closes the file.
Namespace: Crestron.SimplSharp.SshAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic byte[] ReadAllBytes(
string path
)
Parameters
- path String
- The file to open for reading.
Return Value
ByteA byte array containing the contents of the file.
ExceptionsVersion Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also