handle reads: print complete lines (max 512 bytes)