Opens a text file, reads all lines of the file, and then closes the file.
- path (String)
- The file to open for reading.
A string containing all of the file.
| Exception | Condition |
|---|---|
| ArgumentNullException | path is a null reference (Nothing in Visual Basic). |