From: alv@... (Alva) Date: 2002-08-04T05:56:16+09:00 Subject: Re: How to Load Script from a C Extension? William Djaja Tjokroaminata wrote in message news:... > 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' > ..... > > and my configuration parameters are loaded at that point. However, from a > C extension, when I wrote > > ..... > rb_load (rb_str_new2 ("conf.rb"), 0); > ..... > > rb_require("conf.rb"); works for me Tomek 'Alva' Wroblewski