On Fri, Jul 9, 2010 at 8:15 AM, Mark Needham <[email protected]> wrote:
> Cool! I changed it a little to work in C#:
>
> var session = new Session();
> session.Eval("result=: 2 + 2");
> var result = session.Variable("result");
> Console.Write(result);
>
> What would I need to do if I wanted to execute a J script file directly
> rather than just individual expressions?
session.Eval("0!:0<'script.ijs'");
ought to work
Or, if you want a dynamic name, use a variable to identify the script.
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm