Opens a file, appends the specified string to the file, and then closes the file.
If the file does not exist, this method creates a file, writes the specified string to the file, 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 append the specified string to.
- contents
- Type:
System String
The string to append to the file.
- encoding
- Type:
System.Text Encoding
The character encoding to use.
Exceptions
| Exception | Condition |
|---|---|
| path is null. -or- contents is null.-or- encoding is null. |
See Also