FileReadAllLines Method (KernelTransaction, String, Encoding) |
[AlphaFS] Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static string[] ReadAllLines(
KernelTransaction transaction,
string path,
Encoding encoding
)
Public Shared Function ReadAllLines (
transaction As KernelTransaction,
path As String,
encoding As Encoding
) As String()
public:
static array<String^>^ ReadAllLines(
KernelTransaction^ transaction,
String^ path,
Encoding^ encoding
)
static member ReadAllLines :
transaction : KernelTransaction *
path : string *
encoding : Encoding -> string[]
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.
Return Value
Type:
StringAll lines of the file.
See Also