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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
bbr322 (Guest)
on 2009-04-02 15:25
(Received via mailing list)
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);
Roger P. (Guest)
on 2009-04-04 09:42
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
This topic is locked and can not be replied to.