make op_write() only use the first line of input