In The Hand LtdIn The Hand
AppendAllLines Method (path, contents)
NamespacesInTheHand.IOFileHelperAppendAllLines(String, IEnumerable<(Of <<'(String>)>>))
.NET Components for Mobility
Appends lines to a file, and then closes the file.
Declaration Syntax
C#Visual Basic
public static void AppendAllLines(
	string path,
	IEnumerable<string> contents
)
Public Shared Sub AppendAllLines ( _
	path As String, _
	contents As IEnumerable(Of String) _
)
Parameters
path (String)
The file to append the lines to. The file is created if it does not already exist.
contents (IEnumerable<(Of <(<'String>)>)>)
The lines to append to the file.
Exceptions
ExceptionCondition
ArgumentExceptionpath is a zero-length string.
ArgumentNullExceptionEither path or contents is a null reference (Nothing in Visual Basic).
IOExceptionAn I/O error occurred while opening the file.

Assembly: InTheHand (Module: InTheHand) Version: 7.0.0.0