ploblem with SciTE

P

Pat Kiatchaipipat

hi! I'm a new programmer in Ruby

and now I have problem with ruby in SciTE
when I want to take input to operate with function I use

print "Enter First Name : "
firstName = gets.to_s

It can't show output when press 'F5' but it show completely in cmd

and I have trouble to switch between cmd and SciTE
please help me :'(
 
W

Waleed Harbi

Note: parts of this message were removed by the gateway to make it a legal Usenet post.

I prefer use eclipse IDE with RDT plugin, it is very powerful.

hi! I'm a new programmer in Ruby

and now I have problem with ruby in SciTE
when I want to take input to operate with function I use

print "Enter First Name : "
firstName = gets.to_s

It can't show output when press 'F5' but it show completely in cmd

and I have trouble to switch between cmd and SciTE
please help me :'(


--
 
W

Wolfgang Nádasi-Donner

Use...

print "Enter First Name : "
STDOUT.flush
firstName = gets.to_s

..., this might help.

Wolfgang Nádasi-Donner
 

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

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top