FileCreateTextTransacted Method (KernelTransaction, String, Encoding, PathFormat) |
[AlphaFS] Creates or opens a file for writing
Encoding encoded text.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static StreamWriter CreateTextTransacted(
KernelTransaction transaction,
string path,
Encoding encoding,
PathFormat pathFormat
)
Public Shared Function CreateTextTransacted (
transaction As KernelTransaction,
path As String,
encoding As Encoding,
pathFormat As PathFormat
) As StreamWriter
public:
static StreamWriter^ CreateTextTransacted(
KernelTransaction^ transaction,
String^ path,
Encoding^ encoding,
PathFormat pathFormat
)
static member CreateTextTransacted :
transaction : KernelTransaction *
path : string *
encoding : Encoding *
pathFormat : PathFormat -> StreamWriter
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The file to be opened for writing. - encoding
- Type: System.TextEncoding
The encoding that is applied to the contents of the file. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
StreamWriterA StreamWriter that writes to the specified file using UTF-8 encoding.
See Also