[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How to get a writable FILE* from RFile in Ruby 1.9.1?

bbr322

4/2/2009 11:23:00 AM

rb_io_t *fptr;

Check_Type(f, T_FILE);
rb_io_binmode(f);
GetOpenFile(f, fptr);
rb_io_check_writable(fptr);
fprintf(rb_io_stdio_file(fptr), pstr);

--
It doesn't work, thanks.
1 Answer

Roger Pack

4/4/2009 5:42:00 AM

0

bbr322 wrote:
> rb_io_t *fptr;
>
> Check_Type(f, T_FILE);
> rb_io_binmode(f);
> GetOpenFile(f, fptr);
> rb_io_check_writable(fptr);
> fprintf(rb_io_stdio_file(fptr), pstr);

is that a question or an answer? :)
-=r
--
Posted via http://www.ruby-....