I/O learning resource

Hi
I want some learn about input data with keyboard. please help me and
introduce me some resource.
thanks.

Get and puts is the most basic. Run a google search on that.

For every human that work with computer , it is obvious to go to search
engines for learning new things. But I propose this topic because the
persons who come to this forum ,probably are familiar with ruby and can
help me.
So , if you can’t help me please don’t write your junky advice.

Excuse me. I’m guessing you’re coming from a zero programming
experience.
Gets waits for keyboard input and puts displays a string (text) to the
screen. Would you like an example?

Name = gets()
Puts = Name

Anything junky about that?

On Fri, Aug 12, 2011 at 7:20 AM, Allen W. [email protected]
wrote:

Excuse me. I’m guessing you’re coming from a zero programming experience.
Gets waits for keyboard input and puts displays a string (text) to the
screen. Would you like an example?

Name = gets()
Puts = Name

Anything junky about that?

Variables that begin with capital letters are constants in Ruby.
Probably
Name shouldn’t be a constant. Methods aren’t constants, so their names
are
all lowercase, so Puts should actually be puts. A slight
reinterpretation of this program:

name = gets
puts “Hello, #{name}”

If it makes you feel more comfortable being explicit, this translates
(approximately) to:

name = $stdin.gets()
$stdout.puts(“Hello, #{name}”)

I apologize about that. Wrote from my phone. Auto caps is on.
On Aug 12, 2011 8:36 PM, “Josh C.” [email protected] wrote:

Variables that begin with capital letters are constants in Ruby. Probably
Name shouldn’t be a constant. Methods aren’t constants, so their names
are