Opens a file, reads all lines of the file with the specified encoding, and then closes the file.
A string containing all of the file.
| Exception | Condition |
|---|---|
| ArgumentNullException | path is a null reference (Nothing in Visual Basic). |
| In The Hand ReadAllText Method (path, encoding) Namespaces ► InTheHand.IO ► FileHelper ► ReadAllText(String, Encoding) |
| Exception | Condition |
|---|---|
| ArgumentNullException | path is a null reference (Nothing in Visual Basic). |