Click or drag to resize

FileReadAllLinesTransacted Method (KernelTransaction, String, Encoding, PathFormat)

[AlphaFS] Opens a file, reads all lines of the file with the specified encoding, and then closes the file.

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public static string[] ReadAllLinesTransacted(
	KernelTransaction transaction,
	string path,
	Encoding encoding,
	PathFormat pathFormat
)

Parameters

transaction
Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction.
path
Type: SystemString
The file to open 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: String
All lines of the file.
See Also