title: How do I load a JavaScript file with Jint in C#?
body: <p>I want to load a JavaScript file using Jint, but I can't seem to figure it out. The documentation said I could do something like <code>engine.run(file1)</code>, but it doesn't appear to be loading any files. Do I need to do something special with the file name?</p>
  
  <p>Here's my JavaScript file:</p>
  
  <pre><code>// test.js
  status = "test";
  </code></pre>
  
  <p>Here's my C#</p>
  
  <pre><code>JintEngine js = new JintEngine();
  js.Run("test.js");
  object result = js.Run("return status;");
  Console.WriteLine(result);
  Console.ReadKey();
  </code></pre>
  
  <p>If I put in code manually in <code>Run</code> it works.</p>
  
  <pre><code>object result = js.Run("return 2 * 21;"); // prints 42
  </code></pre>