User interaction on console program

Hi,

I feel a little strange that there are no explain (may be I omitted)
about how to get user input from console, like the C scanf function?

Shannon

Hi –

···

On Mon, 2 Dec 2002, Shannon Fang wrote:

Hi,

I feel a little strange that there are no explain (may be I omitted)
about how to get user input from console, like the C scanf function?

Look in the chapter of the Pickaxe called “Basic Input and Output”.

If you specifically want scanf, you can download scanf for Ruby from
http://www.rubyhacker.com/code/scanf.

David


David Alan Black
home: dblack@candle.superlink.net
work: blackdav@shu.edu
Web: http://pirate.shu.edu/~blackdav