SftpClientWriteAllLines(String, String, Encoding) Method |
Creates a new file, writes the specified string array to the file by using the specified encoding, and then closes the file.
Namespace: Crestron.SimplSharp.SshAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic void WriteAllLines(
string path,
string[] contents,
Encoding encoding
)
Parameters
- path String
- The file to write to.
- contents String
- The string array to write to the file.
- encoding Encoding
- An Encoding object that represents the character encoding applied to the string array.
ExceptionsVersion Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also