SftpClient WriteAllBytes Method SSH .NET Client Library Documentation
Creates a new file, writes the specified byte array to the file, and then closes the file. If the target file already exists, it is overwritten.

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

public void WriteAllBytes(
	string path,
	byte[] bytes
)

Parameters

path
Type: OnlineSystem String
The file to write to.
bytes
Type:  OnlineSystem Byte 
The bytes to write to the file.
Exceptions

See Also