From: nobu.nokada@... Date: 2004-06-22T06:44:42+09:00 Subject: Re: opening a file in ext Hi, At Tue, 22 Jun 2004 06:23:13 +0900, Ara.T.Howard wrote in [ruby-talk:104277]: > 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... You should see io.c. VALUE rb_file_open(const char *fname, const char *mode); VALUE rb_file_sysopen(const char *fname, int flags, int mode); Hmmm, but rb_file_sysopen() lacks the prototype... -- Nobu Nakada