Simplified I/O for rust similar to streams in C++ and java.util.Scanner.