Click or drag to resize

SftpClientAppendAllText(String, String, Encoding) Method

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: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public void AppendAllText(
	string path,
	string contents,
	Encoding encoding
)

Parameters

path  String
The file to append the specified string to.
contents  String
The string 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