Get
<< name or Get["name"] reads in a file, evaluating each expression and returning the last one.
Examples
Load a package or file:
<< "myfile.m"Get returns the last expression:
Get["definitions.m"]
(* last expression in file *)Please visit the official Wolfram Language Reference for more details.