Conversion of String to Char

If there is one (or more) bytes available to read, it is NOT OK to read 10 bytes.

Ya I know, It is just for the trial purpose.

edit : the link helped.. I think I figured it out. Thanks