FileOpenText Method (String, Encoding) |
[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 OpenText(
string path,
Encoding encoding
)
Public Shared Function OpenText (
path As String,
encoding As Encoding
) As StreamReader
public:
static StreamReader^ OpenText(
String^ path,
Encoding^ encoding
)
static member OpenText :
path : string *
encoding : Encoding -> StreamReader
Parameters
- path
- Type: SystemString
The file to be opened for reading. - encoding
- Type: System.TextEncoding
The Encoding applied to the contents of the file.
Return Value
Type:
StreamReaderA
StreamReader on the specified path.
Remarks This method is equivalent to the
StreamReader(String) constructor overload.
See Also