In The Hand LtdIn The Hand
WriteAllLines Method (path, contents)
NamespacesInTheHand.IOFileHelperWriteAllLines(String, IEnumerable<(Of <<'(String>)>>))
.NET Components for Mobility
Creates a new file, writes a collection of strings to the file, and then closes the file.
Declaration Syntax
C#Visual Basic
public static void WriteAllLines(
	string path,
	IEnumerable<string> contents
)
Public Shared Sub WriteAllLines ( _
	path As String, _
	contents As IEnumerable(Of String) _
)
Parameters
path (String)
The file to write to.
contents (IEnumerable<(Of <(<'String>)>)>)
The lines to write to the file.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is a null reference (Nothing in Visual Basic) or contents string is empty.

Assembly: InTheHand (Module: InTheHand) Version: 7.0.0.0