std::ioStandard I/O operations.
Read from stdin and write to stdout or stderr.
import std::io;
fn main() {
io.write("enter your name: ");
let name = io.read_line();
io.write("hello, ");
io.write(name);
io.write("\n");
}
read_lineRead a single line from standard input.
Strips the trailing newline. Returns an empty string on EOF or error.
writeWrite a string to standard output without a trailing newline.
write_errWrite a string to standard error without a trailing newline.
read_allRead all available data from standard input.
Returns an empty string on error.