FileDialogFileInfo.OpenText Method

Creates a StreamReader with UTF8 encoding that reads from an existing text file.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)


Public Function OpenText As StreamReader
Dim instance As FileDialogFileInfo
Dim returnValue As StreamReader

returnValue = instance.OpenText()
public StreamReader OpenText()
StreamReader^ OpenText()
public function OpenText() : StreamReader

Return Value

Type: System.IO.StreamReader

A new StreamReader with UTF8 encoding.

See Also


FileDialogFileInfo Class

FileDialogFileInfo Members

System.Windows.Controls Namespace