C# Capturing STDOUT from IronRuby Script
Posted
by Marc
on Stack Overflow
See other posts from Stack Overflow
or by Marc
Published on 2010-03-14T04:43:30Z
Indexed on
2010/03/14
4:45 UTC
Read the original article
Hit count: 582
I have a very simple test.rb file:
puts "Hello World"
I want to execute this file within c#, eg:
var runtime = Ruby.CreateRuntime();
runtime.ExecuteFile("C:\test.rb");
How can I capture the "Hello World"?
Thanks!
© Stack Overflow or respective owner