ReadAllText
Reads the entire contents of a file and returns it as a String.
Public Function ReadAllText(
ByVal Path As String,
Optional ByVal Encoding As Encoding ) As String
Parameters
- Path
-
[ByVal]
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.
Remarks
See Also
Project VBCorLib Overview
| Class File Overview