Writes lines to a file.

Namespace: Composite.Core.IO
Assembly: Composite (in Composite.dll) Version: 6.1.6325.31818

Syntax

C#
public static void WriteAllLines(
	string path,
	string[] contents,
	Encoding encoding
)
Visual Basic
Public Shared Sub WriteAllLines ( _
	path As String, _
	contents As String(), _
	encoding As Encoding _
)
Visual C++
public:
static void WriteAllLines(
	String^ path, 
	array<String^>^ contents, 
	Encoding^ encoding
)

Parameters

path
Type: System..::..String
Path to file to write to.
contents
Type: array<System..::..String>[]()[][]
Lines to write.
encoding
Type: System.Text..::..Encoding
Encoding to use when writing.

See Also