Hi,

My current temporary solution is to open the Ruby script file in C, get it
line by line with "fgets", and invoke "rb_eval_string" for each line.  The
only problem is that it does not work with multi-line Ruby statements.  Is
there a better (and easier) solution?

Regards,

Bill
==============================================================================
William Djaja Tjokroaminata <billtj / z.glue.umd.edu> wrote:
> Hi,

> Is it possible to load (and execute) a Ruby script from within a C
> extension?  From my Ruby code, I can just write

>     .....
>     load 'conf.rb'
>     .....