Opens a text file, reads all lines of the file, and then closes the file.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
Parameters
- path
- Type:
System String
The file to open for reading.
Return Value
A string array containing all lines of the file.Exceptions
| Exception | Condition |
|---|---|
| path is null. |
See Also