File.OpenText Method (String, Encoding, PathFormat)
Click or drag to resize
FileOpenText Method (String, Encoding, PathFormat)
[AlphaFS] Opens an existing Encoding encoded text file for reading.

Namespace: Alphaleonis.Win32.Filesystem
Assembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax
public static StreamReader OpenText(
	string path,
	Encoding encoding,
	PathFormat pathFormat
)

Parameters

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: StreamReader
A StreamReader on the specified path.
See Also