Using a C program inside of Rails

Hi,

I have a compiled c program I use to do text processing.

It operates as a pipe:

cat sometext.txt | /usr/local/bin/my_c_program > othertext.txt

I want to use it to process text which is typed into
a textarea field in an HTML form.

What are some options I have to make use of this
executable so I could use it as a text filter inside
of Rails?

-Dan

Try Kernel#popen [http://corelib.rubyonrails.org/classes/IO.html#M001289].

-ryan

I'm writing tests and want to move my development data into my test db. I do a "rake db:data:dump MODEL=My_modelname" and get a fixtures file that looks like this: