[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

how do I IO.read the entire thing

Aryk Grosz

12/1/2007 11:48:00 PM

I have a system command that im running using Popen. Im trying to read
in the entire io result. IO.read needs a length argument to run.

How can I read it without knowing what the total length is?
--
Posted via http://www.ruby-....

1 Answer

Bill Kelly

12/2/2007 1:00:00 AM

0


From: "Aryk Grosz" <tennisbum2002@hotmail.com>
>
>I have a system command that im running using Popen. Im trying to read
> in the entire io result. IO.read needs a length argument to run.
>
> How can I read it without knowing what the total length is?

Omit the length parameter. (ri IO#read)

everything = io.read


Regards,

Bill