Scratch for Java

File::load()

Loads an object of the specified class from a file at the given path.

Syntax

Java

.load(path, cls)
.load(path, cls, type, createIfMissing)

Parameters

Name Data Type Description
path String the path to the file from which the object is to be loaded
cls Class<T> the class of the object to be loaded
type FileType
createIfMissing boolean

Return

T

load()