Issues with read function. Outputs upside down question mark. Could be an issue with pointers.