Combine a reader + writer into a duplex of Read + Write.

This is useful when you need a reader + writer, but it doesn't come neatly pre-packaged. This allows wiring it together with minimal effort. See also: io::empty , io::sink .

Read a line from stdin, and write it to stdout. All from the same stdio object: