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.
A3623db51b70c337eeda762898224f6e?d=identicon&s=25 bbr322 (Guest)
on 2009-04-02 13: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);
Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2009-04-04 07: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.