ReadAllText(String) Method
In This Topic
Opens a text file, reads all lines of the file, and then closes the file.
Syntax
'Declaration
Public Overloads Shared Function ReadAllText( _
ByVal As String _
) As String
public static string ReadAllText(
string
)
Parameters
- path
- The file to open for reading.
Return Value
A string containing all lines of the file.
See Also