We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
use io::ReaderUtil; fn main() { let stdin = io::stdin(); for stdin.each_byte() |b| { io::println(fmt!("byte '%c' %d", b as char, b)); } }
$ echo foo | ./main byte 'f' 102 byte 'o' 111 byte 'o' 111 byte ' ' 10 byte '?' -1
That last byte shouldn't be included.