Friedrich
3/12/2008 7:24:00 AM
Nikhil Warade <newarade47@gmail.com> writes:
> How can I give input to a program using STDIN
> Suppose I want the program to take the value x=10
> On some other site i found it as STDIN.read,but its not working.
>
print("Give me a string ");
STDOUT.flush
a_string = gets
print("You gave me '#{a_string}'")
Regards
Friedrich
--
Please remove just-for-news- to reply via e-mail.