FileWriteAllTextTransacted Method (KernelTransaction, String, String) |
[AlphaFS] Creates a new file as part of a transaction, write the contents to the file, and then closes the file. If the target file already exists, it is overwritten.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static void WriteAllTextTransacted(
KernelTransaction transaction,
string path,
string contents
)
Public Shared Sub WriteAllTextTransacted (
transaction As KernelTransaction,
path As String,
contents As String
)
public:
static void WriteAllTextTransacted(
KernelTransaction^ transaction,
String^ path,
String^ contents
)
static member WriteAllTextTransacted :
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 to write to the file.
Exceptions Remarks This method uses UTF-8 encoding without a Byte-Order Mark (BOM)
See Also