File::load()
Loads the JSON-data from the given path into a new object of the given class.
Examples
File /examples/reference/FileSave.java is missing.
Syntax
Java
.load(path, cls)
Scratch
load (path) (class)
Parameters
Name | Data Type | Description |
---|---|---|
path | String | Path to a JSON-file. |
cls | Class | A class for the created object. |
Return
Object