FileOpenTextTransacted Method (KernelTransaction, String, Encoding, PathFormat) |
[AlphaFS] Opens an existing
Encoding encoded text file for reading.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static StreamReader OpenTextTransacted(
KernelTransaction transaction,
string path,
Encoding encoding,
PathFormat pathFormat
)
Public Shared Function OpenTextTransacted (
transaction As KernelTransaction,
path As String,
encoding As Encoding,
pathFormat As PathFormat
) As StreamReader
public:
static StreamReader^ OpenTextTransacted(
KernelTransaction^ transaction,
String^ path,
Encoding^ encoding,
PathFormat pathFormat
)
static member OpenTextTransacted :
transaction : KernelTransaction *
path : string *
encoding : Encoding *
pathFormat : PathFormat -> StreamReader
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The file to be opened for reading. - 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).
Return Value
Type:
StreamReaderA
StreamReader on the specified path.
Remarks This method is equivalent to the
StreamReader(String) constructor overload.
See Also