Skip to content

Instantly share code, notes, and snippets.

@porras
Created May 4, 2009 08:29
Show Gist options
  • Save porras/106381 to your computer and use it in GitHub Desktop.
Save porras/106381 to your computer and use it in GitHub Desktop.
input = "foo bar wadus wadus"
File.open("path/to/input.txt", "w") do |f|
f.puts input
end
system("path/to/wadus.exe")
output = File.read("path/to/output.txt")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment