read_character function

read character from binary