FileWriteAllLinesTransacted Method (KernelTransaction, String, String) |
[AlphaFS] Creates a new file, writes a collection of strings to the file, and then closes the file.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void WriteAllLinesTransacted(
KernelTransaction transaction,
string path,
string[] contents
)
Public Shared Sub WriteAllLinesTransacted (
transaction As KernelTransaction,
path As String,
contents As String()
)
public:
static void WriteAllLinesTransacted(
KernelTransaction^ transaction,
String^ path,
array<String^>^ contents
)
static member WriteAllLinesTransacted :
transaction : KernelTransaction *
path : string *
contents : string[] -> unit
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The file to write to. - contents
- Type: SystemString
The string array to write to the file.
Exceptions Remarks The default behavior of the method is to write out data by using UTF-8 encoding without a byte order mark (BOM).
See Also