ReadAllText
Reads the entire contents of a file and returns it as a String.
Public Function ReadAllText(
ByRef Path As String,
Optional ByVal Encoding As Encoding ) As String
Parameters
- Path
-
[ByRef]
String.
The path and filename to read in.
- Encoding
-
[ByVal]
Optional.
Encoding.
The encoding to be used in reading the file.
Return Values
String - A string containing the contents of the file.
See Also
Project CorLib Overview
Class File Overview