SftpClient WriteAllLines Method (String,  String , Encoding)SSH .NET Client Library Documentation
Creates a new file, writes the specified string array to the file by using the specified encoding, and then closes the file.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public void WriteAllLines(
	string path,
	string[] contents,
	Encoding encoding
)

Parameters

path
Type: OnlineSystem String
The file to write to.
contents
Type:  OnlineSystem String 
The string array to write to the file.
encoding
Type: OnlineSystem.Text Encoding
An OnlineEncoding object that represents the character encoding applied to the string array.
Exceptions

See Also