WriteAllLines(FileInfo, 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: Z.IO.Extensions
Assembly: Z.ExtensionMethods.WithNamespace.dll

Syntax

public static Void WriteAllLines(this FileInfo this, string[] contents, Encoding encoding)

Parameters

this
Type:  FileInfo
The file to write to.
contents
Type:  String[]
The string array to write to the file.
encoding
Type:  Encoding
An object that represents the character encoding applied to the string array.

Return Value

Type:  Void
Powered by ZZZ Projects .NET Documentation Generator 0.0.2 (Alpha)