Opens the specified file for reading.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static StreamReader OpenFile( string fileName, Encoding defaultEncoding )
Public Shared Function OpenFile ( _ fileName As String, _ defaultEncoding As Encoding _ ) As StreamReader
public: static StreamReader^ OpenFile( String^ fileName, Encoding^ defaultEncoding )
Return Value
Returns a StreamReader that reads from the stream. Use
CurrentEncoding to get the encoding that was used.
Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238