From: Sean O'Dell Date: 2004-06-22T06:25:31+09:00 Subject: Re: opening a file in ext On Monday 21 June 2004 14:23, Ara.T.Howard wrote: > what's the correct way to do this? i'm poking around in file.c now - no > File.new to be found... IO.open perhaps? i need to return an open file > from a c function... This should work: return rb_funcall(rb_cFile, rb_intern(":new"), rb_str_new2("filename")); Sean O'Dell