In The Hand LtdIn The Hand
AppendAllLines Method (path, contents, encoding)
NamespacesInTheHand.IOFileHelperAppendAllLines(String, IEnumerable<(Of <<'(String>)>>), Encoding)
.NET Components for Mobility
Appends lines to a file by using a specified encoding, and then closes the file.
Declaration Syntax
C#Visual Basic
public static void AppendAllLines(
	string path,
	IEnumerable<string> contents,
	Encoding encoding
)
Public Shared Sub AppendAllLines ( _
	path As String, _
	contents As IEnumerable(Of String), _
	encoding As Encoding _
)
Parameters
path (String)
The file to append the lines to.
contents (IEnumerable<(Of <(<'String>)>)>)
The lines to append to the file.
encoding (Encoding)
The character encoding to use.
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