Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
 OpenText Method
.NET Framework Class Library for Silverlight
FileDialogFileInfo..::.OpenText Method
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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

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

Visual Basic (Declaration)
Public Function OpenText As StreamReader
Visual Basic (Usage)
Dim instance As FileDialogFileInfo
Dim returnValue As StreamReader

returnValue = instance.OpenText()
C#
public StreamReader OpenText()
Visual C++
public:
StreamReader^ OpenText()
JScript
public function OpenText() : StreamReader

Return Value

Type: System.IO..::.StreamReader

A new StreamReader with UTF8 encoding.

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker