Bot / structs/Read / Read
structs/Read.Read
A utility class for reading files.
This class provides helper methods for reading various file types from the file system, additionally implementing error handling and validation.
• new Read()
▸ Static JSON(path): JsonObject
Imports the contents of the specified JSON file.
| Name | Type | Description |
|---|---|---|
path |
string |
The path to the JSON file. |
JsonObject
The contents of the JSON file.