how do I IO.read the entire thing

A

Aryk Grosz

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?
 
B

Bill Kelly

From: "Aryk Grosz said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,271
Messages
2,571,361
Members
48,043
Latest member
BartEaster

Latest Threads

Top