AvalonEdit
ReadFileContent Method (fileName, defaultEncoding)
NamespacesICSharpCode.AvalonEdit.UtilsFileReaderReadFileContent(String, Encoding)
Reads the content of the file.
Declaration Syntax
C#Visual BasicVisual C++
public static string ReadFileContent(
	string fileName,
	Encoding defaultEncoding
)
Public Shared Function ReadFileContent ( _
	fileName As String, _
	defaultEncoding As Encoding _
) As String
public:
static String^ ReadFileContent(
	String^ fileName, 
	Encoding^ defaultEncoding
)
Parameters
fileName (String)
The file name.
defaultEncoding (Encoding)
The encoding to use if the encoding cannot be auto-detected.
Return Value
The file content as string.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: 5.0.0.4238