in reply to Help with STDIN problem, losing data input
There is nothing special about the snippet you have quoted to indicate anything that would have any complaint about the input you give it. All you're doing is reading a line from STDIN and then printing it after an asterisk. You'll have to show us a better snippet with what you gave it and what you got back that was unexpected.