How do I IO.read the entire thing

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?

From: “Aryk G.” [email protected]

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