Click or drag to resize

SftpClientWriteAllLines(String, IEnumerableString, Encoding) Method

Creates a new file by using the specified encoding, writes a collection of strings to the file, and then closes the file.

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

Parameters

path  String
The file to write to.
contents  IEnumerableString
The lines to write to the file.
encoding  Encoding
The character encoding to use.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also