In The Hand LtdIn The Hand
ReadAllText Method (path)
NamespacesInTheHand.IOFileHelperReadAllText(String)
.NET Components for Mobility
Opens a text file, reads all lines of the file, and then closes the file.
Declaration Syntax
C#Visual Basic
public static string ReadAllText(
	string path
)
Public Shared Function ReadAllText ( _
	path As String _
) As String
Parameters
path (String)
The file to open for reading.
Return Value
A string containing all of the file.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is a null reference (Nothing in Visual Basic).

Assembly: InTheHand (Module: InTheHand) Version: 7.0.0.0