Hi all,
I have 2 files which are placed in two different folders. These folders
are not under any Classpath & i am using a windows system.

I have the following snippet of program, which i am stuck with,
FILE 1:
---------------------------------------------------------------------------------
<rubycode>

class Test

puts " This out is from file1 "

end
<rubycode>
---------------------------------------------------------------------------------
FILE 2:
---------------------------------------------------------------------------------
<rubycode>

require "Test"
puts "This output is from File2"

<rubycode>
---------------------------------------------------------------------------------
If File 1 is and File 2 are in two different locations, i get the
following error :
FILE2.rb:1:in `require': no such file to load -- Test (LoadError)
        from run.rb:1
If both the files are in same folder ,it works but if they are located
in different locations it fails,
How can make it work, should i provide anything under "require"

Thanks
-- 
Posted via http://www.ruby-forum.com/.