AvalonEdit
OpenFile Method (fileName, defaultEncoding)
NamespacesICSharpCode.AvalonEdit.UtilsFileReaderOpenFile(String, Encoding)
Opens the specified file for reading.
Declaration Syntax
C#Visual BasicVisual 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
)
Parameters
fileName (String)
The file to open.
defaultEncoding (Encoding)
The encoding to use if the encoding cannot be auto-detected.
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