add half-finished function for reading a handle delimited by CRLF