[rust-dev] console?

Patrick Walton pwalton at mozilla.com
Sun Apr 8 11:20:14 PDT 2012


On 04/08/2012 11:15 AM, Kobi Lurie wrote:
> hi rust list, is there something like Console.ReadLine in rust?
> I want to experiment, get a feel for the language by writing a little
> hangman game.

Check out the io module: http://doc.rust-lang.org/doc/core/io.html

In particular use stdin() to get a handle to standard input, and then 
use read_line(). You will need to import reader and reader_util.

Patrick


More information about the Rust-dev mailing list