I need to write a Ruby extension which reads binary data from a C FILE
pointer (using
fread) which corresponds to a Ruby File object.  In other words, I want to
use
File.new inside Ruby, then pass the file descriptor into a C function which
reads from
the file I opened in Ruby.

I've looked in the "Extending Ruby" chapter in the pickaxe book, and also in
the 
README.ext file, but can't find what I'm looking for.

Thanks,

Brett

-- 
 Brett W. Denner                    Lockheed Martin Aeronautics Co.
 email: Brett.W.Denner / lmco.com     PO Box 748, MZ 9332
 phone: 817-935-1144                Fort Worth, TX 76101
 fax:   817-935-1212