Thanks a lot for the modification,but with your code the file created is
empty.I don’t know how resolve my problem with ruby_run.
I think that I execute ruby file and call the file .exe from visual C.
But if I use the ruby code is better.
There is another way to execute ruby, without ruby_run?
Thanks