method string.execute_file
Contract
Return typewob
Parameter keyDefault valueType
env_or_contextnull
a_ekindcodepath
returns"last"string
Water Contract
<method string.execute_file
  env_or_context=null
  a_ekind       =ekind.code 
  returns       ="last"/>

See also: execute_string

Executes the code in the content of the file name in _subject The current folder starts out as the user folder. "file:///foo/bar.h2o".<execute_file/> While a file is being executed, its string name is in thing.loading_file . "returns" can be: env_or_context parameter behaves just as it does for execute_string and execute_expression . Example: The content of the file "junk.h2o" is: x.<plus y/>
<file "junk.h2o"/>.<set content='x.<plus y/>'/>
<method foo x=req>
    <set y=8/>
    <file "junk.h2o"/>.<execute env_or_context=_environment/>
  </method>
<foo 7/>
15
The execution_kind and returns parameters perform the same functionality as those parameters in execute_string .