Click or drag to resize

SftpClientAppendAllLines(String, IEnumerableString, Encoding) Method

Appends lines to a file by using a specified encoding, and then closes the file.

Namespace: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public void AppendAllLines(
	string path,
	IEnumerable<string> contents,
	Encoding encoding
)

Parameters

path  String
The file to append the lines to. The file is created if it does not already exist.
contents  IEnumerableString
The lines to append to the file.
encoding  Encoding
The character encoding to use.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.

-or-

contents is null.

-or-

encoding is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also