Implemented PrintKey and PrintData for stdio