From: Eero Saynatkari Date: 2005-12-20T08:10:06+09:00 Subject: Re: Very new to Ruby--needs help Beginner wrote: > Dear Ruby Gurus, > > I would like to load a *.lib file into my *.rb file. How to do that. I > did mentioned the path but was not successful. I did this: > > load (or require) "PATH name:*.lib" What is in the .lib file? If it is ruby code (in which case you should just change it to .rb anyway:), require "#{path}/foobar.lib" Should work fine. If it is object code, I believe ruby can only load .so (and, I assume, .dll) files so you may need to extract the shared library. If it is just plain text or something, you would want to use File.open(filename) {|f| do_something_with f }. Please clarify a bit and I am sure we can help you get it working right! > thx, > Mankan E -- Posted via http://www.ruby-forum.com/.