[rust-dev] console?

Kobi Lurie kobi2187 at gmail.com
Sun Apr 8 11:29:59 PDT 2012


Thanks!!

On 4/8/2012 9:20 PM, Patrick Walton wrote:
> 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
> _______________________________________________
> Rust-dev mailing list
> Rust-dev at mozilla.org
> https://mail.mozilla.org/listinfo/rust-dev



More information about the Rust-dev mailing list