FileAppendAllLinesTransacted Method (KernelTransaction, String, IEnumerableString, Encoding, PathFormat) |
[AlphaFS] Appends lines to a file, and then closes the file. If the specified file does not exist, this method creates a file,
writes the specified lines to the file, and then closes the file.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static void AppendAllLinesTransacted(
KernelTransaction transaction,
string path,
IEnumerable<string> contents,
Encoding encoding,
PathFormat pathFormat
)
Public Shared Sub AppendAllLinesTransacted (
transaction As KernelTransaction,
path As String,
contents As IEnumerable(Of String),
encoding As Encoding,
pathFormat As PathFormat
)
public:
static void AppendAllLinesTransacted(
KernelTransaction^ transaction,
String^ path,
IEnumerable<String^>^ contents,
Encoding^ encoding,
PathFormat pathFormat
)
static member AppendAllLinesTransacted :
transaction : KernelTransaction *
path : string *
contents : IEnumerable<string> *
encoding : Encoding *
pathFormat : PathFormat -> unit
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The file to append the lines to. The file is created if it doesn't already exist. - contents
- Type: System.Collections.GenericIEnumerableString
The lines to append to the file. - encoding
- Type: System.TextEncoding
The character Encoding to use. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Exceptions Remarks
The method creates the file if it doesn't exist, but it doesn't create new directories. Therefore, the value of the path parameter
must contain existing directories.
See Also