Writing a program in a single file is fine for small tasks but more complicated programs are better when split across multiple files. They are easier to read and maintain and code to be reused more easily.
To make the Roo interpreter process other files use the
require keyword. It accepts a single argument without parentheses (a
Text literal). The interpreter is smart enough to only require a file once and so subsequent calls to require the same file will be ignored.
require "/Users/garry/Desktop/test1.roo" # An absolute path. require "/Users/garry/Desktop/test2" # Note the .roo extension is optional. require "test3.roo" # Can pass a path relative to the current script file.