Fixed bug while printing messages

the use of hGetLine would only get a line, so if the user
enteres a multi-line message, it would only print the first

changing this to gGetContents would print the entire contents
of the handle at the time of calling