Evaluate the contents of the file as a new Run

run_file  filename (path)

Reads the full contents of the file with path and executes it in a new Run. This works as if the code in the file was in a buffer and Run button was pressed.

Introduced in v2.11

Example

# Example 1

run_file "~/path/to/sonic-pi-code.rb"



#=> will run the contents of this file