SftpClientWriteAllLines(String, IEnumerableString) Method |
Creates a new file, writes a collection of strings to the file, and then closes the file.
Namespace: Crestron.SimplSharp.SshAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic void WriteAllLines(
string path,
IEnumerable<string> contents
)
Parameters
- path String
- The file to write to.
- contents IEnumerableString
- The lines to write to the file.
ExceptionsVersion Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also