Rev Language Reference


source - Function for sourcing a Rev file

This function takes a Rev filename as an argument and runs that Rev script.

Usage

source(String file, Bool echo.on)

Arguments

file : String (pass by value)
The name of the file to read-in.
echo.on : Bool (pass by value)
Should we print the commands from the file on the screen?
Default : FALSE

Return Type

Example

# set the file name
fn = "rb_tutorial.Rev"
# the source function will run the Rev code in the file fn
source(fn)