layout | title | subtitle |
---|---|---|
tutorial |
FAQ / Recipes |
Simple examples for simple but common problems |
{% highlight csharp %}
script.Options.DebugPrint = s => { Console.WriteLine(s); }
{% endhighlight %}
{% highlight csharp %}
script.Options.DebugInput = () => { return Console.ReadLine(); }
{% endhighlight %}
{% highlight csharp %}
IoModule.SetDefaultFile(script, Platforms.StandardFileType.StdIn, myInputStream); IoModule.SetDefaultFile(script, Platforms.StandardFileType.StdOut, myOutputStream); IoModule.SetDefaultFile(script, Platforms.StandardFileType.StdErr, myErrorStream);
{% endhighlight %}