From: William Djaja Tjokroaminata Date: 2002-08-03T02:54:42+09:00 Subject: Re: How to Load Script from a C Extension? 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 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' > .....