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-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
How to get a writable FILE* from RFile in Ruby 1.9.1?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password