Read all text from a file.

Namespace: Composite.Core.IO
Assembly: Composite (in Composite.dll) Version: 5.3.6135.33083

Syntax

C#
public static string ReadAllText(
	string path,
	Encoding encoding
)
Visual Basic
Public Shared Function ReadAllText ( _
	path As String, _
	encoding As Encoding _
) As String
Visual C++
public:
static String^ ReadAllText(
	String^ path, 
	Encoding^ encoding
)

Parameters

path
Type: System..::..String
Path to file to read from.
encoding
Type: System.Text..::..Encoding
Encoding to use when reading.

Return Value

The content of the file.

See Also