Hi,

Additionally This is the forum for Only Watir Users. So please post your
next ruby related question to Ruby-forums(http://ruby-forum.com).



On Tue, Aug 18, 2009 at 3:10 PM, Raveendran P <jazzezr...@gmail.com> wrote:

> Hi,
>
> 1. Go to command prompt
>
> 2. c:\WHERETHEcODEFolDER> ruby sunny.rb
>
> 3. try here and let me know
>
> Thanks
>
>
> On Tue, Aug 18, 2009 at 2:59 PM, shailesh <shaileshbt...@gmail.com> wrote:
>
>>
>> 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 ?
>> >>
>>
>
>
> --
> Regards,
> P.Raveendran
> http://raveendran.wordpress.com
>
>


-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to