Fix log message. Open in text mode, not binary mode.
Read floorc in text mode, not binary mode.