Appends lines to a file by using a specified encoding, and then closes the file.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
public void AppendAllLines( string path, IEnumerable<string> contents, Encoding encoding )
Parameters
- path
- Type:
System String
The file to append the lines to. The file is created if it does not already exist.
- contents
- Type:
System.Collections.Generic IEnumerable
String
The lines 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