Click or drag to resize

FileWriteAllTextTransacted Method (KernelTransaction, String, String, Encoding, PathFormat)

[AlphaFS] Creates a new file as part of a transaction, writes the specified string to the file using the specified encoding, 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.2
Syntax
public static void WriteAllTextTransacted(
	KernelTransaction transaction,
	string path,
	string contents,
	Encoding encoding,
	PathFormat pathFormat
)

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.
encoding
Type: System.TextEncoding
The Encoding applied to the contents of the file.
pathFormat
Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Exceptions
See Also