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,982
Messages
2,570,185
Members
46,737
Latest member
Georgeengab

Latest Threads

Top