FileReadLines Method (String, Encoding, PathFormat) |
[AlphaFS] Read the lines of a file that has a specified encoding.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax public static IEnumerable<string> ReadLines(
string path,
Encoding encoding,
PathFormat pathFormat
)
Public Shared Function ReadLines (
path As String,
encoding As Encoding,
pathFormat As PathFormat
) As IEnumerable(Of String)
public:
static IEnumerable<String^>^ ReadLines(
String^ path,
Encoding^ encoding,
PathFormat pathFormat
)
static member ReadLines :
path : string *
encoding : Encoding *
pathFormat : PathFormat -> IEnumerable<string>
Parameters
- path
- Type: SystemString
The file to read. - 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:
IEnumerableStringAll the lines of the file, or the lines that are the result of a query.
See Also