R
Robo
I've got a piece of code like this to get multi line input from STDIN:
while (s = gets()) != nil
#whip s till it bleeds
end
When I run it, I'm able to get each line of input I type in, but I can't
figure out how to terminate the input e.g. "OK, I've given you all the
inputs, exit the loop"
In Linux, I think it was done by pressing ^D at the end, but that
doesn't do anything in Windows. Any ideas?
Robo
while (s = gets()) != nil
#whip s till it bleeds
end
When I run it, I'm able to get each line of input I type in, but I can't
figure out how to terminate the input e.g. "OK, I've given you all the
inputs, exit the loop"
In Linux, I think it was done by pressing ^D at the end, but that
doesn't do anything in Windows. Any ideas?
Robo