I'd like to be able to read a line of text from input, and output on the screen.

please provide sample code.

Thanks.