have a look at the code :
puts("Heyyyy")
puts("h")
i=gets()
puts(i)
a very simple code but the output was :
>ruby sunny.rb
hieeee
Heyyyy
h
hieeee
>Exit code: 0
Here 'hieeee' was the input I gave. It always asks the user input
before executing the output
My question is how can I use puts() to print first and then take user
inputs ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---